diff --git a/drivers/net/nsos_sockets.c b/drivers/net/nsos_sockets.c index ac82e1ad525..bfd8cb2c7f3 100644 --- a/drivers/net/nsos_sockets.c +++ b/drivers/net/nsos_sockets.c @@ -256,6 +256,8 @@ static int nsos_close(void *obj) errno = nsos_adapt_get_zephyr_errno(); } + k_free(sock); + return ret; }