* [PATCH] ASoC: soc-core: Fix codec->name memory leak
@ 2010-10-21 12:19 Dimitris Papastamos
2010-10-21 20:35 ` Liam Girdwood
2010-10-21 20:49 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Dimitris Papastamos @ 2010-10-21 12:19 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, patches
Ensure that the codec->name is freed when unregistering the codec.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
---
sound/soc/soc-core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 862b1af..70d9a73 100644
--- 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);
--
1.7.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: soc-core: Fix codec->name memory leak
2010-10-21 12:19 [PATCH] ASoC: soc-core: Fix codec->name memory leak Dimitris Papastamos
@ 2010-10-21 20:35 ` Liam Girdwood
2010-10-21 20:49 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2010-10-21 20:35 UTC (permalink / raw)
To: Dimitris Papastamos; +Cc: alsa-devel, Mark Brown, patches
On Thu, 2010-10-21 at 13:19 +0100, Dimitris Papastamos wrote:
> Ensure that the codec->name is freed when unregistering the codec.
>
> Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: soc-core: Fix codec->name memory leak
2010-10-21 12:19 [PATCH] ASoC: soc-core: Fix codec->name memory leak Dimitris Papastamos
2010-10-21 20:35 ` Liam Girdwood
@ 2010-10-21 20:49 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-10-21 20:49 UTC (permalink / raw)
To: Dimitris Papastamos; +Cc: alsa-devel, patches, Liam Girdwood
On Thu, Oct 21, 2010 at 01:19:45PM +0100, Dimitris Papastamos wrote:
> Ensure that the codec->name is freed when unregistering the codec.
>
> Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-21 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 12:19 [PATCH] ASoC: soc-core: Fix codec->name memory leak Dimitris Papastamos
2010-10-21 20:35 ` Liam Girdwood
2010-10-21 20:49 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).