Commit c3c5f02b authored by Andreas Schneider's avatar Andreas Schneider

swrap: Call dlclose() in the destructor

Signed-off-by: default avatarAndreas Schneider <asn@samba.org>
parent 19fd43f7
......@@ -5131,4 +5131,11 @@ void swrap_destructor(void)
}
s = sockets;
}
if (swrap.libc_handle != NULL) {
dlclose(swrap.libc_handle);
}
if (swrap.libsocket_handle) {
dlclose(swrap.libsocket_handle);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment