Skip to contentSkip to conversation

Fix possible leak in af_ax25

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

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

PATCH 1/1 Fix possible leak in af_ax25

Spotted with the source checker from Coverity.com.

net/ax25/af_ax25.c +3 -0
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/net/ax25/af_ax25.c linux-2.6/net/ax25/af_ax25.c
@@ -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);