Commit 1ee61c38 authored by Krishna Kumar's avatar Krishna Kumar Committed by James Morris

[IPV4]: Do not leak cork.opt in ip_push_pending_frames().

parent 8b5e1193
...@@ -1187,6 +1187,10 @@ int ip_push_pending_frames(struct sock *sk) ...@@ -1187,6 +1187,10 @@ int ip_push_pending_frames(struct sock *sk)
out: out:
inet->cork.flags &= ~IPCORK_OPT; inet->cork.flags &= ~IPCORK_OPT;
if (inet->cork.opt) {
kfree(inet->cork.opt);
inet->cork.opt = NULL;
}
if (inet->cork.rt) { if (inet->cork.rt) {
ip_rt_put(inet->cork.rt); ip_rt_put(inet->cork.rt);
inet->cork.rt = NULL; inet->cork.rt = NULL;
......
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