From a3d624e0688ed115ec030028d35a0e214630e4bf Mon Sep 17 00:00:00 2001 From: ylavic <15033035+ylavic@users.noreply.github.com> Date: Tue, 9 Nov 2021 23:31:40 +0100 Subject: [PATCH] apr_pool_initialize() pairs with apr_pool_terminate(), using apr_terminate() causes leaks. (#6806) --- projects/apache-httpd/fuzz_addr_parse.c | 2 +- projects/apache-httpd/fuzz_tokenize.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/apache-httpd/fuzz_addr_parse.c b/projects/apache-httpd/fuzz_addr_parse.c index 3fc00ab6b..509068900 100644 --- a/projects/apache-httpd/fuzz_addr_parse.c +++ b/projects/apache-httpd/fuzz_addr_parse.c @@ -31,7 +31,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { free(input_string); apr_pool_destroy(pool); - apr_terminate(); + apr_pool_terminate(); return 0; } diff --git a/projects/apache-httpd/fuzz_tokenize.c b/projects/apache-httpd/fuzz_tokenize.c index 1de629558..02a11fecf 100644 --- a/projects/apache-httpd/fuzz_tokenize.c +++ b/projects/apache-httpd/fuzz_tokenize.c @@ -28,7 +28,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { free(arg_str); apr_pool_destroy(pool); - apr_terminate(); + apr_pool_terminate(); return 0; }