]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Eicon ISDN: fix leak in eicon debug code.
authorDave Jones <davej@redhat.com>
Thu, 2 Sep 2004 04:38:10 +0000 (21:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Sep 2004 04:38:10 +0000 (21:38 -0700)
Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Armin Schindler <armin@melware.de>
drivers/isdn/hardware/eicon/debug.c

index 060bc0dc96c615278f45b21ac24966e63e92e309..6851c6270ce87870132af4c8b46f277c6eae0a6f 100644 (file)
@@ -891,6 +891,7 @@ void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d) {
     if (clients[id].hDbg && (clients[id].request == d->request)) {
       diva_os_leave_spin_lock (&dbg_q_lock, &old_irql, "register");
       diva_os_leave_spin_lock (&dbg_adapter_lock, &old_irql1, "register");
+      diva_os_free(0, pmem);
       return;
     }
     if (clients[id].hDbg) { /* slot is busy */