Messages in this thread Patch in this message | | | From | Daniel Ritz <> | Subject | [PATCH 2.5] fix memleak in sound/isa/als100.c | Date | Mon, 24 Mar 2003 13:11:04 +0100 |
| |
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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |