summaryrefslogtreecommitdiff
path: root/sound/isa
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-12-15 00:25:52 +0100
committerAdrian Bunk <bunk@stusta.de>2006-12-15 00:25:52 +0100
commite2cde31279a1e6c0d3b6dbb9a8987c3c017ba4c6 (patch)
treecb1c0c851e3903efe768900ad8275abacb311142 /sound/isa
parent2b12669873c4e2a5b2f9d4ccc84653832b06c2ff (diff)
[ALSA] fix some memory leaks
This patch fixes two memory leaks spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/es18xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c
index 08f032b51107..7a12848a7b05 100644
--- a/sound/isa/es18xx.c
+++ b/sound/isa/es18xx.c
@@ -1927,6 +1927,7 @@ static int __devinit snd_audiodrive_pnp(int dev, struct snd_audiodrive *acard,
err = pnp_activate_dev(acard->devc);
if (err < 0) {
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
+ kfree(cfg);
return -EAGAIN;
}
snd_printdd("pnp: port=0x%lx\n", pnp_port_start(acard->devc, 0));