commit | a7d5f107b4978e08eeab599ee7449af34d034053 | [log] [tgz] |
---|---|---|
author | Jon Maloy <jon.maloy@ericsson.com> | Mon Dec 04 22:00:20 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Dec 05 14:52:41 2017 -0500 |
tree | 7eea9f2bf7169a373ef0c4a69d5a410d051e5a51 | |
parent | 672ecbe1c977616aa720c9397589665b33e72610 [diff] |
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: David S. Miller <davem@davemloft.net> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>