From 918a3df2feb94b8de5e207a92fae1beb1f1b82f9 Mon Sep 17 00:00:00 2001 From: Nikolay Shaplov Date: Sun, 5 Jan 2025 17:30:14 +0300 Subject: [PATCH] Fix memory leaks in t/local/45_exporter.t --- t/local/45_exporter.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/local/45_exporter.t b/t/local/45_exporter.t index 3370567d..514ec693 100644 --- a/t/local/45_exporter.t +++ b/t/local/45_exporter.t @@ -69,6 +69,7 @@ sub server Net::SSLeay::shutdown($ssl); Net::SSLeay::free($ssl); + Net::SSLeay::CTX_free($ctx); close($cl) || die("server close: $!"); } $server->close() || die("server listen socket close: $!"); @@ -110,6 +111,7 @@ sub client { Net::SSLeay::shutdown($ssl); Net::SSLeay::free($ssl); + Net::SSLeay::CTX_free($ctx); close($cl) || die("client close: $!"); $proto_count += 1; }