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
@ -165,8 +165,9 @@ void icmp_free(FAR struct icmp_conn_s *conn)
|
|||||||
/* Free the connection */
|
/* Free the connection */
|
||||||
|
|
||||||
dq_addlast(&conn->node, &g_free_icmp_connections);
|
dq_addlast(&conn->node, &g_free_icmp_connections);
|
||||||
nxsem_post(&g_free_sem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nxsem_post(&g_free_sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user