ALSA: cs46xx: Fix memory leak at destructor
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Jan 2014 06:44:27 +0000 (07:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Jan 2014 06:44:27 +0000 (07:44 +0100)
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

index f18e587..062398e 100644 (file)
@@ -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: