Commit 4cac87d3 authored by Adam Belay's avatar Adam Belay

ALS100 Memory Leak Fix

This trivial patch adds a missing kfree, the leak occurs when 
pnp_activate_dev fails.
parent 9645e7b1
......@@ -151,6 +151,7 @@ static int __devinit snd_card_als100_isapnp(int dev, struct snd_card_als100 *aca
err = pnp_activate_dev(pdev);
if (err < 0) {
printk(KERN_ERR PFX "AUDIO pnp configure failure\n");
kfree(cfg);
return err;
}
port[dev] = pnp_port_start(pdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment