Skip to content
Commit a7d5f107 authored by Jon Maloy's avatar Jon Maloy Committed by David S. Miller
Browse files

tipc: fix memory leak in tipc_accept_from_sock()



When the function tipc_accept_from_sock() fails to create an instance of
struct tipc_subscriber it omits to free the already created instance of
struct tipc_conn instance before it returns.

We fix that with this commit.

Reported-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 672ecbe1
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