From: Greg Hudson Date: Wed, 21 Oct 2015 17:23:37 +0000 (-0400) Subject: Fix memory leak in test kdcpreauth module X-Git-Tag: krb5-1.15-beta1~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a3fdba731cb815011bff83ded2ac9f543a1768a;p=thirdparty%2Fkrb5.git Fix memory leak in test kdcpreauth module In test_verify(), in the second round trip case, free the string attribute before returning. --- 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");