Commit c22233a1 authored by Jordan Yates's avatar Jordan Yates Committed by David Leach
Browse files

net: nsos_sockets: free allocated socket on close



Free the socket object allocated in `nsos_socket_create` when closing
the socket.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 303c7d7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -256,6 +256,8 @@ static int nsos_close(void *obj)
		errno = nsos_adapt_get_zephyr_errno();
	}

	k_free(sock);

	return ret;
}