[PATCH] [UBUNTU:sound/isa] Fix memory leak in isa/es18xx.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] [UBUNTU:sound/isa] Fix memory leak in isa/es18xx.c

Daniel T Chen
UpstreamStatus: Added in upstream isa/es18xx.c r1.69

This patch from Adrian Bunk <[hidden email]> fixes a memory leak
spotted by the Coverity checker in isa/es18xx.c .

Signed-off-by: Daniel T Chen <[hidden email]>

---

 sound/isa/es18xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

38c2b79fe35c13d3f4de4f2fe466b31a15356c18
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c
index 970e2aa..ebc703f 100644
--- a/sound/isa/es18xx.c
+++ b/sound/isa/es18xx.c
@@ -1931,6 +1931,7 @@ static int __devinit snd_audiodrive_pnp(
  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));
--
1.1.3

--
Daniel T. Chen            [hidden email]
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team

attachment0 (196 bytes) Download Attachment