Skip to content
Commit 04d8b7c5 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Mahesh Mahadevan
Browse files

net: sockets: Cleanup socket properly if POSIX API is enabled



The sock_obj_core_dealloc() was not called if close() is called
instead of zsock_close(). This happens if POSIX API is enabled.

Fix this by calling zvfs_close() from zsock_close() and then
pass the socket number to zsock_close_ctx() so that the cleanup
can be done properly.

Reported-by: default avatarAndreas Ålgård <aal@ixys.no>
Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent 92d02878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment