net: tcp: Don't leak net_conn_handles
net_context_put() forgot to release the conn_handler field causing subsequent failures in net_conn_register() when they ran out. Change-Id: I0d306b5035199422fa8788338ac9da8d1900d5f9 Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
96294b79a7
commit
fc35e649ff
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ int net_context_put(struct net_context *context)
|
|||
}
|
||||
#endif /* CONFIG_NET_TCP */
|
||||
|
||||
if (context->conn_handler) {
|
||||
net_conn_unregister(context->conn_handler);
|
||||
}
|
||||
|
||||
context->flags &= ~NET_CONTEXT_IN_USE;
|
||||
|
||||
#if defined(CONFIG_NET_TCP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue