From: Eric Sesterhenn Date: Thu, 28 Sep 2006 10:35:48 +0000 (+0200) Subject: [ALSA] Fix memory leak in sound/isa/es18xx.c X-Git-Tag: v2.6.19-rc2~286^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92b93d31718a3ccbbcf911d2f570bb345c496d66;p=profile%2Fivi%2Fkernel-x86-ivi.git [ALSA] Fix memory leak in sound/isa/es18xx.c Fixed a memory leak in the error patch. Signed-off-by: Eric Sesterhenn Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 2398d2c..725c115 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa/es18xx.c @@ -2154,6 +2154,7 @@ static int __devinit snd_audiodrive_pnpc(int dev, struct snd_audiodrive *acard, } /* Control port initialization */ if (pnp_activate_dev(acard->devc) < 0) { + kfree(cfg); snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n"); return -EAGAIN; }