diff options
| author | Andreas Schneider <asn@samba.org> | 2015-08-17 12:14:44 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2015-08-17 12:15:45 +0200 |
| commit | c3c5f02b0746958845eb825620765ac741920985 (patch) | |
| tree | 11b45fbb5a2bd3d58665c4060d2c4916b6411783 /src | |
| parent | 19fd43f706cd73add4c7dd23613ceccf00fc0c84 (diff) | |
| download | socket_wrapper-c3c5f02b0746958845eb825620765ac741920985.tar.gz socket_wrapper-c3c5f02b0746958845eb825620765ac741920985.tar.xz socket_wrapper-c3c5f02b0746958845eb825620765ac741920985.zip | |
swrap: Call dlclose() in the destructor
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/socket_wrapper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 12eb010..45282ed 100644 --- a/src/socket_wrapper.c +++ b/src/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); + } } |
