From: Andreas Schneider Date: Mon, 23 Nov 2015 07:33:02 +0000 (+0100) Subject: nwrap: Fix the build on Solaris X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=9b7902090d2d594d25d517759dba78ced0f9124b nwrap: Fix the build on Solaris Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index be977dfad96..a080b808f54 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -5578,7 +5578,9 @@ void nwrap_destructor(void) } free(user_addrlist.items); +#ifdef HAVE_GETHOSTBYNAME2 free(user_addrlist2.items); +#endif hdestroy(); NWRAP_UNLOCK_ALL;