git.samba.org
/
kai
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swrap: Call dlclose() in the destructor
[kai/samba-autobuild/.git]
/
lib
/
socket_wrapper
/
socket_wrapper.c
diff --git
a/lib/socket_wrapper/socket_wrapper.c
b/lib/socket_wrapper/socket_wrapper.c
index 12eb010ae2a807445bdc733d6d84d7797e238b5d..45282edeea0e434d81a55f4551ae2d3159fbb340 100644
(file)
--- a/
lib/socket_wrapper/socket_wrapper.c
+++ b/
lib/socket_wrapper/socket_wrapper.c
@@
-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);
+ }
}