Commit 5663eafb authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

sk-inet: don't leak sockets

CID 73347 (#7-4 of 7): Resource leak (RESOURCE_LEAK)
21. leaked_handle: Handle variable sk going out of scope leaks the handle.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 18936337
...@@ -553,7 +553,7 @@ done: ...@@ -553,7 +553,7 @@ done:
goto err; goto err;
if (restore_socket_opts(sk, ie->opts)) if (restore_socket_opts(sk, ie->opts))
return -1; goto err;
return sk; return sk;
......
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