diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-22 07:44:27 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-22 07:44:27 +0100 |
commit | b75b1518a5e76f76324b371b9b0013b8e79e88ea (patch) | |
tree | 35cb00613b158f1600b5f990adf7d75e4104f117 /sound/pci/cs46xx | |
parent | Merge tag 'asoc-v3.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/bro... (diff) | |
download | linux-b75b1518a5e76f76324b371b9b0013b8e79e88ea.tar.xz linux-b75b1518a5e76f76324b371b9b0013b8e79e88ea.zip |
ALSA: cs46xx: Fix memory leak at destructor
The release of module object itself was forgotten.
Spotted by COVERIY CID 1162828.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index f18e5878f58b..062398ec5335 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c @@ -369,6 +369,7 @@ static void free_module_desc(struct dsp_module_desc *module) kfree(module->segments[i].data); kfree(module->segments); } + kfree(module); } /* firmware binary format: |