From 1824b05af0f690be105440fdfe0c935b67568076 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 22 Dec 1998 04:10:08 +0000 Subject: [PATCH] gss-server.c (test_import_export_context): Fix memory leak git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11094 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/ChangeLog | 4 ++++ src/appl/gss-sample/gss-server.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 80e6a0bf3..d2e9cde14 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 21 22:04:02 1998 Theodore Y. Ts'o + + * gss-server.c (test_import_export_context): Fix memory leak. + 1998-11-13 Theodore Ts'o * configure.in: Removed and tests moved up to appl/configure.in diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 3e9ff0959..df7de21f3 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -315,6 +315,7 @@ int test_import_export_context(context) display_status("importing context", maj_stat, min_stat); return 1; } + free(copied_token.value); gettimeofday(&tm1, (struct timezone *)0); if (verbose && log) fprintf(log, "Importing context: %7.4f seconds\n", -- 2.26.2