From 8a3fdba731cb815011bff83ded2ac9f543a1768a Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 21 Oct 2015 13:23:37 -0400 Subject: [PATCH] Fix memory leak in test kdcpreauth module In test_verify(), in the second round trip case, free the string attribute before returning. --- src/plugins/preauth/test/kdctest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/preauth/test/kdctest.c b/src/plugins/preauth/test/kdctest.c index 82a03b0e2e..026dc680dc 100644 --- a/src/plugins/preauth/test/kdctest.c +++ b/src/plugins/preauth/test/kdctest.c @@ -142,6 +142,7 @@ test_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request, } free(str); enc_tkt_reply->flags |= TKT_FLG_PRE_AUTH; + cb->free_string(context, rock, attr); (*respond)(arg, 0, NULL, NULL, NULL); } else { d = string2data("more"); -- 2.47.2