From f71e6fc9a3f27c96fee68a63c46cc95fbdeecc78 Mon Sep 17 00:00:00 2001 From: Giovanni Bechis Date: Tue, 18 Feb 2020 07:37:45 +0000 Subject: convert malloc(3) into ap_malloc bz 64049 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874156 13f79535-47bb-0310-9956-ffa450edef68 --- support/suexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/suexec.c b/support/suexec.c index 2ebacb9bee..1402f1297c 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -239,7 +239,7 @@ static void clean_env(void) environ = &empty_ptr; /* VERY safe environment */ - if ((cleanenv = (char **) calloc(AP_ENVBUF, sizeof(char *))) == NULL) { + if ((cleanenv = (char **) ap_calloc(AP_ENVBUF, sizeof(char *))) == NULL) { log_err("failed to malloc memory for environment\n"); exit(123); } -- cgit v1.2.1