summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-11-03 13:55:29 -0400
committerSimo Sorce <ssorce@redhat.com>2011-11-07 11:13:55 -0500
commitea10ad18511cf0f1456537855812bcdcbcac70c0 (patch)
tree893c4dd5b661ff58ffb0f15824d722f29b1705b7
parentbc3fb1b3a06449681c202b640a4f4ae306cb3e18 (diff)
downloadfreeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.tar.gz
freeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.tar.xz
freeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.zip
Fix CID 11024: Resource leak
https://fedorahosted.org/freeipa/ticket/2037
-rw-r--r--daemons/ipa-kdb/ipa_kdb_principals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb_principals.c b/daemons/ipa-kdb/ipa_kdb_principals.c
index bb1356a01..818ef033f 100644
--- a/daemons/ipa-kdb/ipa_kdb_principals.c
+++ b/daemons/ipa-kdb/ipa_kdb_principals.c
@@ -128,6 +128,7 @@ static int ipadb_ldap_attr_to_tl_data(LDAP *lcontext, LDAPMessage *le,
done:
if (ret) {
+ free(next);
if (*result) {
prev = *result;
while (prev) {