projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c429ffb
)
ASoC: soc-core: Fix codec->name memory leak
author
Dimitris Papastamos
<
[email protected]
>
Thu, 21 Oct 2010 12:19:45 +0000
(13:19 +0100)
committer
Mark Brown
<
[email protected]
>
Thu, 21 Oct 2010 20:47:38 +0000
(13:47 -0700)
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 862b1af5fbdf8dde9f70510265872a4298b96eca..70d9a7394b2b35fde32e812108dadf86031a95c0 100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-3299,6
+3299,7
@@
found:
if (codec->reg_cache)
kfree(codec->reg_cache);
+ kfree(codec->name);
kfree(codec);
}
EXPORT_SYMBOL_GPL(snd_soc_unregister_codec);