diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-09-28 06:35:48 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-10-06 14:22:58 -0400 |
commit | 92b93d31718a3ccbbcf911d2f570bb345c496d66 (patch) | |
tree | e58c6d4aef026322eec71e9fae350e79f65174e2 | |
parent | f3838ba9204cd8af83c4358379221af66d77714e (diff) |
[ALSA] Fix memory leak in sound/isa/es18xx.c
Fixed a memory leak in the error patch.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r-- | sound/isa/es18xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 2398d2c55feb..725c115ff97d 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, | |||
2154 | } | 2154 | } |
2155 | /* Control port initialization */ | 2155 | /* Control port initialization */ |
2156 | if (pnp_activate_dev(acard->devc) < 0) { | 2156 | if (pnp_activate_dev(acard->devc) < 0) { |
2157 | kfree(cfg); | ||
2157 | snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n"); | 2158 | snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n"); |
2158 | return -EAGAIN; | 2159 | return -EAGAIN; |
2159 | } | 2160 | } |