summaryrefslogtreecommitdiff
path: root/usr/src/lib/nsswitch
diff options
context:
space:
mode:
authorchinlong <none@none>2006-11-27 13:19:18 -0800
committerchinlong <none@none>2006-11-27 13:19:18 -0800
commit2f1c59b18b4820d3f912c5465e37c28a93f9a5be (patch)
tree3ae354fab094ab2111bcf2e6aa1705f9010b1272 /usr/src/lib/nsswitch
parent102033aa92edf302ad31b3bdd7c6fcd2d6910903 (diff)
downloadillumos-joyent-2f1c59b18b4820d3f912c5465e37c28a93f9a5be.tar.gz
6495007 memory leak in libsldap:__s_api_get_cachemgr_data()
Diffstat (limited to 'usr/src/lib/nsswitch')
-rw-r--r--usr/src/lib/nsswitch/ldap/common/gethostent.c4
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);
}