diff options
author | Simo Sorce <ssorce@redhat.com> | 2011-11-03 13:48:32 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-11-07 11:13:55 -0500 |
commit | bc3fb1b3a06449681c202b640a4f4ae306cb3e18 (patch) | |
tree | 1b55ef4b0535d353b87c0b7a541580ff386a985e /daemons/ipa-kdb | |
parent | a49cf51ee254440610d26e30dfb306b3108bb1cd (diff) | |
download | freeipa-bc3fb1b3a06449681c202b640a4f4ae306cb3e18.tar.gz freeipa-bc3fb1b3a06449681c202b640a4f4ae306cb3e18.tar.xz freeipa-bc3fb1b3a06449681c202b640a4f4ae306cb3e18.zip |
Fix CID 11023: 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 117eea869..bb1356a01 100644 --- a/daemons/ipa-kdb/ipa_kdb_principals.c +++ b/daemons/ipa-kdb/ipa_kdb_principals.c @@ -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; } |