The branch, master has been updated
via 23a7a85 nwrap: Don't leak memory from gethostbyname*() functions
from 3ddf857 nwrap: Fix the build on FreeBSD
https://git.samba.org/?p=nss_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 23a7a85a7688f1c6948db55eacb1101ba808d6db
Author: Andreas Schneider <[email protected]>
Date: Fri Nov 20 09:38:16 2015 +0100
nwrap: Don't leak memory from gethostbyname*() functions
Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Michael Adam <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
src/nss_wrapper.c | 3 +++
1 file changed, 3 insertions(+)
Changeset truncated at 500 lines:
diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c
index a8c97e1..be977df 100644
--- a/src/nss_wrapper.c
+++ b/src/nss_wrapper.c
@@ -5577,6 +5577,9 @@ void nwrap_destructor(void)
nwrap_he_global.num = 0;
}
+ free(user_addrlist.items);
+ free(user_addrlist2.items);
+
hdestroy();
NWRAP_UNLOCK_ALL;
}
--
NSS Wrapper Repository