Fix CID 11023: Resource leak

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

View File

@ -334,6 +334,7 @@ done:
free(keys[i].key_data_contents[0]);
free(keys[i].key_data_contents[1]);
}
free(keys);
*result = NULL;
*num = 0;
}