net/icmp: post the semaphore if multiple references

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-01-01 23:32:21 +08:00 committed by Xiang Xiao
parent b11e90f384
commit 3b490d4e3a
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/****************************************************************************