From bf8ddfc91cbeefdc77a5658b3a4ce3cea36524ed Mon Sep 17 00:00:00 2001 From: Nikolay Shaplov Date: Sun, 5 Jan 2025 01:50:41 +0300 Subject: [PATCH] Fix memory leaks in t/local/42_info_callback.t --- t/local/42_info_callback.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/local/42_info_callback.t b/t/local/42_info_callback.t index 8ddcb0c8..c2fc2c03 100644 --- a/t/local/42_info_callback.t +++ b/t/local/42_info_callback.t @@ -36,6 +36,8 @@ my $server = tcp_socket(); for(1,2) { last if Net::SSLeay::shutdown($ssl)>0; } + Net::SSLeay::free($ssl); # Call SSL_free() + Net::SSLeay::CTX_free($ctx); close($cl) || die("server close: $!"); } $server->close() || die("server listen socket close: $!");