summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorGiovanni Bechis <gbechis@apache.org>2020-02-18 08:37:45 +0100
committerGiovanni Bechis <gbechis@apache.org>2020-02-18 08:37:45 +0100
commitf71e6fc9a3f27c96fee68a63c46cc95fbdeecc78 (patch)
treeb3619522fbdb366ce506bee6862628e3bedbf564 /support
parentFix spelling errors in docs found by codespell. [skip ci] (diff)
downloadapache2-f71e6fc9a3f27c96fee68a63c46cc95fbdeecc78.tar.xz
apache2-f71e6fc9a3f27c96fee68a63c46cc95fbdeecc78.zip
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
Diffstat (limited to 'support')
-rw-r--r--support/suexec.c2
1 files changed, 1 insertions, 1 deletions
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);
}