From: Manoj Kasichainula Date: Sat, 30 Oct 1999 01:56:35 +0000 (+0000) Subject: Get rid of an implicit malloc, by making ap_create_tcp_socket use the X-Git-Tag: 1.3.10~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=080f230492812dde6f6b92ad597e1b80dfa92395;p=thirdparty%2Fapache%2Fhttpd.git Get rid of an implicit malloc, by making ap_create_tcp_socket use the process context. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84072 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/listen.c b/server/listen.c index b9c59504994..9061a974a6f 100644 --- a/server/listen.c +++ b/server/listen.c @@ -176,10 +176,9 @@ static void alloc_listener(process_rec *process, char *addr, unsigned int port) } /* this has to survive restarts */ - /* XXX - We need to deal with freeing this structure properly. */ new = ap_palloc(process->pool, sizeof(ap_listen_rec)); new->active = 0; - if ((status = ap_create_tcp_socket(&new->sd, NULL)) != APR_SUCCESS) { + if ((status = ap_create_tcp_socket(&new->sd, process->pool)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, status, NULL, "make_sock: failed to get a socket for %s", addr); return;