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

1 Commits

Author SHA1 Message Date
077cd17376 Free NBD netlink sockets with nl_socket_free()
netlink_sock_free() released the socket from nl_socket_alloc() with a
plain free(), leaking its file descriptor and its callback set. With
LeakSanitizer, netlink-unmap then exits with a non-zero code.
2026-11-16 22:01:32 +03:00