fix one memory leak in sound jack
PATCH 1/1 fix one memory leak in sound jack
Signed-off-by Lu Guanqun <[email protected]>
--- sound/core/jack.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/core/jack.c +1 -0
@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type, fail_input:input_free_device (jack->input_dev); +kfree (jack->id);kfree (jack);return err; }
Signature · 1 line
1.7.2.3
Guanqun, it helps to point out the commit that first introduced the problem.
Reviewed-by Wu Fengguang <[email protected]>
Quoted 19 lines · Lu Guanqun
Signed-off-by Lu Guanqun <[email protected]>--- sound/core/jack.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)sound/core/jack.c +1
-0@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type, fail_input:input_free_device (jack->input_dev); +kfree (jack->id);kfree (jack);return err; }Signature · 1 line
1.7.2.3
At Mon, 21 Feb 2011 13:45:04 +0800,
Quoted 2 lines · Lu Guanqun
Signed-off-by Lu Guanqun <[email protected]>
Applied now. Thanks.
Takashi
Quoted 19 lines
--- sound/core/jack.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)sound/core/jack.c +1
-0@@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type, fail_input:input_free_device (jack->input_dev); +kfree (jack->id);kfree (jack);return err; }Signature · 1 line
1.7.2.3