diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-22 01:44:27 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-22 01:44:27 -0500 |
commit | b75b1518a5e76f76324b371b9b0013b8e79e88ea (patch) | |
tree | 35cb00613b158f1600b5f990adf7d75e4104f117 /sound/pci | |
parent | 7552f34a790069a008bd3e2ab4c0954b30c2f63b (diff) |
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')
-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) | |||
369 | kfree(module->segments[i].data); | 369 | kfree(module->segments[i].data); |
370 | kfree(module->segments); | 370 | kfree(module->segments); |
371 | } | 371 | } |
372 | kfree(module); | ||
372 | } | 373 | } |
373 | 374 | ||
374 | /* firmware binary format: | 375 | /* firmware binary format: |