net/icmp: post the semaphore if multiple references
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
b11e90f384
commit
3b490d4e3a
1 changed files with 2 additions and 1 deletions
|
|
@ -165,8 +165,9 @@ void icmp_free(FAR struct icmp_conn_s *conn)
|
|||
/* Free the connection */
|
||||
|
||||
dq_addlast(&conn->node, &g_free_icmp_connections);
|
||||
nxsem_post(&g_free_sem);
|
||||
}
|
||||
|
||||
nxsem_post(&g_free_sem);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue