From 781a6a3e646366701132cacac51bb4fb6a469fc1 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Fri, 15 Nov 2024 15:37:56 -0600 Subject: Fix memory leak --- libressl.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libressl.patch b/libressl.patch index 00d5d4b..0322ddd 100644 --- a/libressl.patch +++ b/libressl.patch @@ -102,7 +102,7 @@ index 9f1dd67ec..60e1afe99 100644 static void tls_xwrite(tls_state_t *tls, int len) { diff --git a/networking/wget.c b/networking/wget.c -index 6a64836fb..4a5b4c9f0 100644 +index 6a64836fb..f859f429a 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -1,4 +1,3 @@ @@ -282,7 +282,7 @@ index 6a64836fb..4a5b4c9f0 100644 + bb_error_msg_and_die("Failed to set ca path"); + if(tls_config_set_ca_file(config, "cert.pem") != 0) + bb_error_msg_and_die("Failed to set ca file"); -+ gather_certificates(config); ++ pemmem = gather_certificates(config); + if(tls_configure(ctx,config) != 0) + bb_error_msg_and_die("Failed to configure client"); + sfp = tmpfile(); -- cgit v1.2.3-55-g6feb