From 7553846629f5351579c1f067bafc25f129349e81 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Fri, 20 Mar 2020 09:52:56 +0100 Subject: [PATCH] fixed memory leak in test --- test/test_pam_authenticator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_pam_authenticator.cc b/test/test_pam_authenticator.cc index 6f9c4a4..2bbeff0 100644 --- a/test/test_pam_authenticator.cc +++ b/test/test_pam_authenticator.cc @@ -120,6 +120,8 @@ int valid_conversation( int rc = conv->conv(2, messages, &responses, conv->appdata_ptr); if (PAM_SUCCESS == rc) { + free(responses[0].resp); + free(responses[1].resp); free(responses); }