In pa_sam, use the correct function to free sam_challenge in the
authorGreg Hudson <ghudson@mit.edu>
Wed, 6 May 2009 18:52:44 +0000 (18:52 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 May 2009 18:52:44 +0000 (18:52 +0000)
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

index 693791f85f134864c66c9f6454e5bdda0b8d3267..5fb8adde2a35fee4f0ce3128799abcdb7e725395 100644 (file)
@@ -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,