diff options
author | chinlong <none@none> | 2006-11-27 13:19:18 -0800 |
---|---|---|
committer | chinlong <none@none> | 2006-11-27 13:19:18 -0800 |
commit | 2f1c59b18b4820d3f912c5465e37c28a93f9a5be (patch) | |
tree | 3ae354fab094ab2111bcf2e6aa1705f9010b1272 | |
parent | 102033aa92edf302ad31b3bdd7c6fcd2d6910903 (diff) | |
download | illumos-joyent-2f1c59b18b4820d3f912c5465e37c28a93f9a5be.tar.gz |
6495007 memory leak in libsldap:__s_api_get_cachemgr_data()
-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); } |