]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Get rid of an implicit malloc, by making ap_create_tcp_socket use the
authorManoj Kasichainula <manoj@apache.org>
Sat, 30 Oct 1999 01:56:35 +0000 (01:56 +0000)
committerManoj Kasichainula <manoj@apache.org>
Sat, 30 Oct 1999 01:56:35 +0000 (01:56 +0000)
process context.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84072 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index b9c5950499496cbeb23a1c0b88d031e1f7093852..9061a974a6fe22d1da4d579c74a7e54e0c448779 100644 (file)
@@ -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;