diff options
author | Simo Sorce <ssorce@redhat.com> | 2011-11-03 13:55:29 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-11-07 11:13:55 -0500 |
commit | ea10ad18511cf0f1456537855812bcdcbcac70c0 (patch) | |
tree | 893c4dd5b661ff58ffb0f15824d722f29b1705b7 /daemons/ipa-kdb | |
parent | bc3fb1b3a06449681c202b640a4f4ae306cb3e18 (diff) | |
download | freeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.tar.gz freeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.tar.xz freeipa-ea10ad18511cf0f1456537855812bcdcbcac70c0.zip |
Fix CID 11024: Resource leak
https://fedorahosted.org/freeipa/ticket/2037
Diffstat (limited to 'daemons/ipa-kdb')
-rw-r--r-- | daemons/ipa-kdb/ipa_kdb_principals.c | 1 |
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) { |