Commit f0089edf authored by Jeroen Vreeken's avatar Jeroen Vreeken Committed by David S. Miller

[NETROM]: Free buffers in write queue on socket destroy.

parent f5d3d7cc
......@@ -264,6 +264,9 @@ void nr_destroy_socket(struct sock *sk)
kfree_skb(skb);
}
while ((skb = skb_dequeue(&sk->sk_write_queue)) != NULL) {
kfree_skb(skb);
}
if (atomic_read(&sk->sk_wmem_alloc) ||
atomic_read(&sk->sk_rmem_alloc)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment