nwrap: Fix the build on Solaris
[obnox/samba/samba-obnox.git] / lib / nss_wrapper / nss_wrapper.c
index be977dfad96c138fb3b7500e22ae9a076234a7c2..a080b808f54b112932f6f17a684f7560eb60bb2e 100644 (file)
@@ -5578,7 +5578,9 @@ void nwrap_destructor(void)
        }
 
        free(user_addrlist.items);
+#ifdef HAVE_GETHOSTBYNAME2
        free(user_addrlist2.items);
+#endif
 
        hdestroy();
        NWRAP_UNLOCK_ALL;