2003-03-24 12:00:07

by Daniel Ritz

[permalink] [raw]
Subject: [PATCH 2.5] fix memleak in sound/isa/als100.c

a one-liner to fix a mem leak on error path. against 2.5.65-bk.
please include in next ALSA update.

rgds
-daniel


===== sound/isa/als100.c 1.9 vs edited =====
--- 1.9/sound/isa/als100.c Mon Mar 10 00:44:14 2003
+++ edited/sound/isa/als100.c Mon Mar 24 13:03:56 2003
@@ -151,6 +151,7 @@
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);