summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-10-21 12:43:30 -0400
committerSimo Sorce <ssorce@redhat.com>2011-11-03 09:51:30 -0400
commit9f07404fe3f426cb45896dc5e71fbd0492fb8ea3 (patch)
tree40cc0ed71c0d41682833b57142d2938df18715c1 /daemons/ipa-kdb
parent9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f (diff)
downloadfreeipa-9f07404fe3f426cb45896dc5e71fbd0492fb8ea3.tar.gz
freeipa-9f07404fe3f426cb45896dc5e71fbd0492fb8ea3.tar.xz
freeipa-9f07404fe3f426cb45896dc5e71fbd0492fb8ea3.zip
ipa-kdb: Fix memory leak
Diffstat (limited to 'daemons/ipa-kdb')
-rw-r--r--daemons/ipa-kdb/ipa_kdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb.c b/daemons/ipa-kdb/ipa_kdb.c
index 880a7890b..6a6c20639 100644
--- a/daemons/ipa-kdb/ipa_kdb.c
+++ b/daemons/ipa-kdb/ipa_kdb.c
@@ -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);