From b89fe040c3673c700b3f47d79bc380692b9ba846 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 6 May 2009 18:52:44 +0000 Subject: [PATCH] In pa_sam, use the correct function to free sam_challenge in the success path. ticket: 6210 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22319 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/preauth2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 693791f85..5fb8adde2 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -1026,7 +1026,7 @@ krb5_error_code pa_sam(krb5_context context, sam_response.sam_type = sam_challenge->sam_type; sam_response.magic = KV5M_SAM_RESPONSE; - free(sam_challenge); + krb5_free_sam_challenge(context, sam_challenge); /* encode the encoded part of the response */ if ((ret = encode_krb5_enc_sam_response_enc(&enc_sam_response_enc, -- 2.26.2