summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-22 07:44:27 +0100
committerTakashi Iwai <tiwai@suse.de>2014-01-22 07:44:27 +0100
commitb75b1518a5e76f76324b371b9b0013b8e79e88ea (patch)
tree35cb00613b158f1600b5f990adf7d75e4104f117
parent7552f34a790069a008bd3e2ab4c0954b30c2f63b (diff)
downloadop-kernel-dev-b75b1518a5e76f76324b371b9b0013b8e79e88ea.zip
op-kernel-dev-b75b1518a5e76f76324b371b9b0013b8e79e88ea.tar.gz
ALSA: cs46xx: Fix memory leak at destructor
The release of module object itself was forgotten. Spotted by COVERIY CID 1162828. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index f18e587..062398e 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:
OpenPOWER on IntegriCloud