Free NBD netlink sockets with nl_socket_free() #119

Merged
vitalif merged 1 commits from koolkhel/vitastor:nbd-netlink-sock-free into master 2026-11-17 10:21:46 +03:00

View File

@@ -76,7 +76,7 @@ static void netlink_sock_alloc(struct netlink_ctx *ctx)
static void netlink_sock_free(struct netlink_ctx *ctx)
{
free(ctx->sk);
nl_socket_free(ctx->sk);
ctx->sk = NULL;
}