manoj 99/10/29 18:56:36
Modified: src/main listen.c Log: Get rid of an implicit malloc, by making ap_create_tcp_socket use the process context. Revision Changes Path 1.17 +1 -2 apache-2.0/src/main/listen.c Index: listen.c =================================================================== RCS file: /home/cvs/apache-2.0/src/main/listen.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -u -r1.16 -r1.17 --- listen.c 1999/10/24 05:59:18 1.16 +++ listen.c 1999/10/30 01:56:35 1.17 @@ -176,10 +176,9 @@ } /* 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;