OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7552f34
)
ALSA: cs46xx: Fix memory leak at destructor
author
Takashi Iwai
<tiwai@suse.de>
Wed, 22 Jan 2014 06:44:27 +0000
(07:44 +0100)
committer
Takashi 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
patch
|
blob
|
history
diff --git
a/sound/pci/cs46xx/cs46xx_lib.c
b/sound/pci/cs46xx/cs46xx_lib.c
index
f18e587
..
062398e
100644
(file)
--- 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: