git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libwbclient: Fix a fd-leak at dlclose-time
[samba.git]
/
nsswitch
/
wb_common.c
diff --git
a/nsswitch/wb_common.c
b/nsswitch/wb_common.c
index d0dfcb8bbfb67326d82f2736b8110b3a9baf8688..b7fafc38ceea43a8548f8397914ffc51736ee0ff 100644
(file)
--- a/
nsswitch/wb_common.c
+++ b/
nsswitch/wb_common.c
@@
-61,6
+61,9
@@
static void init_response(struct winbindd_response *response)
/* Close established socket */
+#if HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR
+__attribute__((destructor))
+#endif
void winbind_close_sock(void)
{
if (winbindd_fd != -1) {