diff options
Diffstat (limited to 'usr/src/lib/nsswitch/ldap')
-rw-r--r-- | usr/src/lib/nsswitch/ldap/common/gethostent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/nsswitch/ldap/common/gethostent.c b/usr/src/lib/nsswitch/ldap/common/gethostent.c index f327c232c6..d8f847a984 100644 --- a/usr/src/lib/nsswitch/ldap/common/gethostent.c +++ b/usr/src/lib/nsswitch/ldap/common/gethostent.c @@ -240,6 +240,10 @@ result_host2str: free(first_host); if (other_hosts) free(other_hosts); + if (be->toglue) { + free(be->toglue); + be->toglue = NULL; + } (void) __ns_ldap_freeResult(&be->result); return (nss_result); } |