mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.5] fix memleak in sound/isa/als100.c
@ 2003-03-24 12:11 Daniel Ritz
  0 siblings, 0 replies; only message in thread
From: Daniel Ritz @ 2003-03-24 12:11 UTC (permalink / raw)
  To: Jaroslav Kysela, linux-kernel

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-24 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 12:11 [PATCH 2.5] fix memleak in sound/isa/als100.c Daniel Ritz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®