ipa-kdb: Fix memory leak

This commit is contained in:
Simo Sorce
2011-10-21 12:43:30 -04:00
parent 9afe4b98da
commit 9f07404fe3

View File

@@ -262,6 +262,7 @@ int ipadb_get_connection(struct ipadb_context *ipactx)
ret = 0;
done:
ldap_msgfree(res);
if (ret) {
if (ipactx->lcontext) {
ldap_unbind_ext_s(ipactx->lcontext, NULL, NULL);