From 267f20ec30c7e8ead37cb43b6c8a04c19a3d4ad7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 18 Oct 2024 15:32:58 +0200 Subject: [PATCH] s3:utils: Fix memory leak in test_lmv2_ntlmv2_broken() Signed-off-by: Andreas Schneider Reviewed-by: Martin Schwenke --- source3/utils/ntlm_auth_diagnostics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/utils/ntlm_auth_diagnostics.c b/source3/utils/ntlm_auth_diagnostics.c index 5ea8f821c45..69034434148 100644 --- a/source3/utils/ntlm_auth_diagnostics.c +++ b/source3/utils/ntlm_auth_diagnostics.c @@ -438,6 +438,8 @@ static bool test_lmv2_ntlmv2_broken(enum ntlm_break break_which) dump_data(1, ntlmv2_session_key.data, ntlmv2_session_key.length); pass = False; } + + data_blob_free(&ntlmv2_session_key); return pass; }