From 94c462596280161d91f299f461cff7294a5e3f85 Mon Sep 17 00:00:00 2001 From: Barry Xu Date: Thu, 4 Sep 2025 16:40:11 +0800 Subject: [PATCH] Release handshake handle if the permissions file property is absent Signed-off-by: Barry Xu --- src/cpp/security/authentication/PKIDH.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpp/security/authentication/PKIDH.cpp b/src/cpp/security/authentication/PKIDH.cpp index 269bc3cb930..ce3eacb3631 100644 --- a/src/cpp/security/authentication/PKIDH.cpp +++ b/src/cpp/security/authentication/PKIDH.cpp @@ -1735,6 +1735,7 @@ ValidationResult_t PKIDH::begin_handshake_reply( { exception = _SecurityException_("Cannot find permissions file in permissions credential token"); EMERGENCY_SECURITY_LOGGING("PKIDH", exception.what()); + delete handshake_handle_aux; return ValidationResult_t::VALIDATION_FAILED; } }