krb5 commit: Fix leak in DB2 krb5_db_promote() implementation
Greg Hudson
ghudson at mit.edu
Wed Aug 10 13:51:40 EDT 2016
https://github.com/krb5/krb5/commit/0c5f74a25f226b2ea61a0ad7906a7c6605fc3533
commit 0c5f74a25f226b2ea61a0ad7906a7c6605fc3533
Author: Greg Hudson <ghudson at mit.edu>
Date: Tue Jun 28 18:09:35 2016 -0400
Fix leak in DB2 krb5_db_promote() implementation
In krb5_db2_merge_nra_iterator(), free the entry loaded from the
source DB.
ticket: 8442 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
src/plugins/kdb/db2/kdb_db2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c
index 84dadc3..c29867a 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1377,6 +1377,7 @@ krb5_db2_merge_nra_iterator(krb5_pointer ptr, krb5_db_entry *entry)
retval = 0;
}
+ krb5_db_free_principal(nra->kcontext, s_entry);
return retval;
}
More information about the cvs-krb5
mailing list