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 f18e5878f58b42a195df536aedde6d80a3897700..062398ec5335f613b2b8e78e49d6374fc98bcdfc 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: