From: Giovanni Bechis Date: Mon, 24 Feb 2020 21:19:47 +0000 (+0000) Subject: malloc -> ap_malloc X-Git-Tag: 2.5.0-alpha2-ci-test-only~1625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b25a60177aa70ae45784018cb124703d673d5317;p=thirdparty%2Fapache%2Fhttpd.git malloc -> ap_malloc bz #63967 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874470 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 9bce3951892..92907890b44 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -585,10 +585,10 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_ return -1; } - args = malloc((ap_server_conf->process->argc + 1) * sizeof (char*)); + args = ap_malloc((ap_server_conf->process->argc + 1) * sizeof (char*)); memcpy(args + 1, ap_server_conf->process->argv + 1, (ap_server_conf->process->argc - 1) * sizeof (char*)); - args[0] = malloc(strlen(cmd) + 1); + args[0] = ap_malloc(strlen(cmd) + 1); strcpy(args[0], cmd); args[ap_server_conf->process->argc] = NULL; }