Skip to contentSkip to conversation

Fix leak in eicon debug code.

PATCH New Dave Jones 1 participant 1 message Sep 1, 2004

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

PATCH 1/1 Fix leak in eicon debug code.

Spotted with the source checker from Coverity.com.

drivers/isdn/hardware/eicon/debug.c +1 -0
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/isdn/hardware/eicon/debug.c linux-2.6/drivers/isdn/hardware/eicon/debug.c
@@ -891,6 +891,7 @@ void diva_mnt_add_xdi_adapter (const DES
     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 */