diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2006-11-21 14:37:11 +0000 |
---|---|---|
committer | Kevin Coffman <kwc@citi.umich.edu> | 2006-11-21 14:37:11 +0000 |
commit | 72f985d74ba277bb630356ee2fcde4824bd70813 (patch) | |
tree | c7f119c4c1b61ffc8bbb40160be4db6c22a7bcc6 | |
parent | ea34547e917e0b72b41c453ec60e9784fdff079c (diff) | |
download | krb5-72f985d74ba277bb630356ee2fcde4824bd70813.zip krb5-72f985d74ba277bb630356ee2fcde4824bd70813.tar.gz krb5-72f985d74ba277bb630356ee2fcde4824bd70813.tar.bz2 |
free error message when freeing context
Call krb5_clear_error_message() to free any allocated error message
before freeing the context.
The condition that triggered this was a plugin library which fails to
load because of unresolved references. It appears dlopen() on Linux
leaks four bytes for each failing library in this situation.
ticket: new
Target_Version: 1.6
Tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18858 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/init_ctx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 5ce0016..ad924b7 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -272,6 +272,8 @@ krb5_free_context(krb5_context ctx) ctx->ser_ctx = 0; } + krb5_clear_error_message(ctx); + ctx->magic = 0; free(ctx); } |