From 9dcffd7273c3c5026416ce6d1c4f815c3fbebd7c Mon Sep 17 00:00:00 2001 From: Baroukh Ovadia Date: Sun, 5 Dec 2021 06:02:35 +0000 Subject: [PATCH] More efficient but still not fix issue --- src/mod/applications/mod_http_cache/gcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_http_cache/gcs.c b/src/mod/applications/mod_http_cache/gcs.c index 3544c93322..e174e145ed 100644 --- a/src/mod/applications/mod_http_cache/gcs.c +++ b/src/mod/applications/mod_http_cache/gcs.c @@ -183,7 +183,7 @@ switch_status_t gcs_config_profile(switch_xml_t xml, http_profile_t *profile,swi size = switch_file_get_size(fd); if (size) { - contents = malloc(size); + contents = apr_palloc(pool,size); switch_file_read(fd, (void *) contents, &size); } else { switch_safe_free(file);