From 080acda695a22e60c65b28e8b09bec279f187aec Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 15 May 2008 23:01:23 +0000 Subject: [PATCH] Free context after use, not before git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20317 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/import_sec_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gssapi/krb5/import_sec_context.c b/src/lib/gssapi/krb5/import_sec_context.c index 7563dc0d7..2e73b9f52 100644 --- a/src/lib/gssapi/krb5/import_sec_context.c +++ b/src/lib/gssapi/krb5/import_sec_context.c @@ -1,7 +1,7 @@ /* * lib/gssapi/krb5/import_sec_context.c * - * Copyright 1995,2004,2007 by the Massachusetts Institute of Technology. + * Copyright 1995,2004,2007,2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -91,9 +91,9 @@ krb5_gss_import_sec_context(minor_status, interprocess_token, context_handle) } kret = krb5_gss_ser_init(context); if (kret) { - krb5_free_context(context); *minor_status = kret; save_error_info(*minor_status, context); + krb5_free_context(context); return GSS_S_FAILURE; } -- 2.26.2