Fix CID 11024: Resource leak

https://fedorahosted.org/freeipa/ticket/2037
This commit is contained in:
Simo Sorce 2011-11-03 13:55:29 -04:00
parent bc3fb1b3a0
commit ea10ad1851

View File

@ -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) {