krb5 commit [krb5-1.13]: Fix memory leak in DB2 iteration
Tom Yu
tlyu at mit.edu
Thu Apr 16 19:05:06 EDT 2015
https://github.com/krb5/krb5/commit/1e21529e8ddb98f9b00aa8b1be35b7c69c0b3c76
commit 1e21529e8ddb98f9b00aa8b1be35b7c69c0b3c76
Author: Pavel Jindra <paja at civ.zcu.cz>
Date: Wed Apr 15 11:49:53 2015 -0400
Fix memory leak in DB2 iteration
Use the correct function to free the decoded principal entry in
curs_run_cb().
[ghudson at mit.edu: commit message]
(cherry picked from commit 527edfaadb648a0dd2a42cd39a5a02a4ac37d7e3)
ticket: 8168
version_fixed: 1.13.2
status: resolved
src/plugins/kdb/db2/kdb_db2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c
index 4c2292c..7bc760a 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1078,7 +1078,7 @@ curs_run_cb(iter_curs *curs, ctx_iterate_cb func, krb5_pointer func_arg)
k5_mutex_unlock(krb5_db2_mutex);
retval = (*func)(func_arg, entry);
- krb5_db2_free(ctx, entry);
+ krb5_dbe_free(ctx, entry);
k5_mutex_lock(krb5_db2_mutex);
if (dbc->unlockiter) {
lockerr = curs_lock(curs);
More information about the cvs-krb5
mailing list