[alsa-devel] [PATCH] ALSA: cs46xx: Fix memory leak at destructor
22 Jan
2014
22 Jan
'14
8:22 a.m.
The release of module object itself was forgotten. Spotted by COVERIY CID 1162828.
Signed-off-by: Takashi Iwai tiwai@suse.de --- sound/pci/cs46xx/cs46xx_lib.c | 1 + 1 file changed, 1 insertion(+)
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:
--
1.8.5.2
3987
Age (days ago)
3987
Last active (days ago)
0 comments
1 participants
participants (1)
-
Takashi Iwai