zephyr/subsys/net/lib/sockets
Jukka Rissanen 04d8b7c595 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: Andreas Ålgård <aal@ixys.no>
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 15:56:39 -06:00
..
CMakeLists.txt
Kconfig
getaddrinfo.c
getnameinfo.c
socket_dispatcher.c
socket_obj_core.c
socket_offload.c
socketpair.c
sockets.c net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
sockets_can.c
sockets_inet.c net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
sockets_internal.h net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
sockets_misc.c
sockets_net_mgmt.c
sockets_packet.c net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
sockets_service.c
sockets_tls.c net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00