All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix possible leak in af_ax25
@ 2004-09-01 15:51 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2004-09-01 15:51 UTC (permalink / raw)
  To: linux-kernel

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>


diff -urpN --exclude-from=/home/davej/.exclude bk-linus/net/ax25/af_ax25.c linux-2.6/net/ax25/af_ax25.c
--- bk-linus/net/ax25/af_ax25.c	2004-06-07 00:00:22.000000000 +0100
+++ linux-2.6/net/ax25/af_ax25.c	2004-06-07 11:07:06.000000000 +0100
@@ -1272,6 +1272,9 @@ static int ax25_connect(struct socket *s
 
 	sock->state = SS_CONNECTED;
 
+	if (digi != NULL)
+		kfree(digi);
+
 	err=0;
 out:
 	release_sock(sk);

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

only message in thread, other threads:[~2004-09-01 17:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 15:51 [PATCH] Fix possible leak in af_ax25 Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.