diff --git a/net/tipc/server.c b/net/tipc/server.c index 2710101ba4c10bb9f268ff9ebb11aca34791ba3b..d60c303423275db5c0c7c45c9bf1a7d61987bf27 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c @@ -314,6 +314,7 @@ static int tipc_accept_from_sock(struct tipc_conn *con) newcon->usr_data = s->tipc_conn_new(newcon->conid); if (!newcon->usr_data) { sock_release(newsock); + conn_put(newcon); return -ENOMEM; }