krb5 commit: Fix memory leak in DB2 iteration
Greg Hudson
ghudson at mit.edu
Thu Apr 16 16:39:10 EDT 2015
https://github.com/krb5/krb5/commit/527edfaadb648a0dd2a42cd39a5a02a4ac37d7e3
commit 527edfaadb648a0dd2a42cd39a5a02a4ac37d7e3
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]
ticket: 8168
target_version: 1.13.2
tags: pullup
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