Free NBD netlink sockets with nl_socket_free() #119
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user