diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-22 10:44:27 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-22 10:44:27 +0400 |
commit | b75b1518a5e76f76324b371b9b0013b8e79e88ea (patch) | |
tree | 35cb00613b158f1600b5f990adf7d75e4104f117 /sound/pci | |
parent | 7552f34a790069a008bd3e2ab4c0954b30c2f63b (diff) | |
download | linux-b75b1518a5e76f76324b371b9b0013b8e79e88ea.tar.xz |
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) kfree(module->segments[i].data); kfree(module->segments); } + kfree(module); } /* firmware binary format: |