* calling x25_neigh_put() on x25_destroy_socket() Signed-off-by: Aristeu Sergio Rozanski Filho Index: net/x25/af_x25.c =================================================================== --- net/x25/af_x25.c (revision 68) +++ net/x25/af_x25.c (revision 69) @@ -320,6 +320,7 @@ */ void x25_destroy_socket(struct sock *sk) { + struct x25_opt *x25 = x25_sk(sk); struct sk_buff *skb; sock_hold(sk); @@ -351,6 +352,7 @@ add_timer(&sk->sk_timer); } else { /* drop last reference so sock_put will free */ + x25_neigh_put(x25->neighbour); __sock_put(sk); }