krb5 commit: Fix memory leak destroying DIR ccache
Greg Hudson
ghudson at mit.edu
Wed Aug 10 13:51:33 EDT 2016
https://github.com/krb5/krb5/commit/6f8597f85642562bf672eb9a3be542907d0555c1
commit 6f8597f85642562bf672eb9a3be542907d0555c1
Author: Greg Hudson <ghudson at mit.edu>
Date: Sun Jun 26 00:46:39 2016 -0400
Fix memory leak destroying DIR ccache
Credential cache destroy methods are supposed to free the krb5_ccache
structure as well as its contents, but dcc_destroy() was not doing so.
ticket: 8433 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
src/lib/krb5/ccache/cc_dir.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/lib/krb5/ccache/cc_dir.c b/src/lib/krb5/ccache/cc_dir.c
index b00a6bb..bba64e5 100644
--- a/src/lib/krb5/ccache/cc_dir.c
+++ b/src/lib/krb5/ccache/cc_dir.c
@@ -445,6 +445,7 @@ dcc_destroy(krb5_context context, krb5_ccache cache)
ret = krb5_fcc_ops.destroy(context, data->fcc);
free(data->residual);
free(data);
+ free(cache);
return ret;
}
More information about the cvs-krb5
mailing list