From: Ken Raeburn Date: Thu, 15 May 2008 23:01:23 +0000 (+0000) Subject: Free context after use, not before X-Git-Tag: krb5-1.7-alpha1~684 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=080acda695a22e60c65b28e8b09bec279f187aec;p=krb5.git Free context after use, not before git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20317 dc483132-0cff-0310-8789-dd5450dbe970 --- 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; }