Commit 60304631 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

sockets: Fix memory leak on relative bind path

In case if relative bind path found we skip such
socket but forget to free previously allocated
memory.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 49074a98
......@@ -240,6 +240,8 @@ static int unix_collect_one(struct unix_diag_msg *m, struct rtattr **tb)
if (name[0] != '/') {
pr_warning("Relative bind path unsupported\n");
xfree(name);
xfree(d);
return 0;
}
......
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