Fix possible leak in af_ax25
PATCH 1/1 Fix possible leak in af_ax25
Spotted with the source checker from Coverity.com.
Signed-off-by Dave Jones <[email protected]>
net/ax25/af_ax25.c +3 -0
@@ -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);