Skip to contentSkip to conversation

ALSA: cs46xx: Fix memory leak at destructor

PATCH New Takashi Iwai 1 participant 1 message Jan 22, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: cs46xx: Fix memory leak at destructor

The release of module object itself was forgotten. Spotted by COVERIY CID 1162828.

---
 sound/pci/cs46xx/cs46xx_lib.c | 1 +
 1 file changed, 1 insertion(+)
sound/pci/cs46xx/cs46xx_lib.c +1 -0
index f18e5878f58b..062398ec5335 100644
@@ -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:
Signature · 1 line
1.8.5.2