[alsa-devel] [PATCH] ALSA: cs46xx: Fix memory leak at destructor
Takashi Iwai
tiwai at suse.de
Wed Jan 22 08:22:43 CET 2014
The release of module object itself was forgotten.
Spotted by COVERIY CID 1162828.
Signed-off-by: Takashi Iwai <tiwai at 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
More information about the Alsa-devel
mailing list