summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-11-03 13:48:32 -0400
committerSimo Sorce <ssorce@redhat.com>2011-11-07 11:13:55 -0500
commitbc3fb1b3a06449681c202b640a4f4ae306cb3e18 (patch)
tree1b55ef4b0535d353b87c0b7a541580ff386a985e /daemons/ipa-kdb
parenta49cf51ee254440610d26e30dfb306b3108bb1cd (diff)
downloadfreeipa-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.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 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;
}