]> granicus.if.org Git - apache/commitdiff
close a nearly-impossible leak in dummy_connection (the copy of the
authorJeff Trawick <trawick@apache.org>
Mon, 18 Feb 2002 16:24:51 +0000 (16:24 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 18 Feb 2002 16:24:51 +0000 (16:24 +0000)
code used by worker MPM)

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

server/mpm/worker/pod.c

index c869e43832aae3274ab093ff041b1c4bcba16719..1067f284d35fe2aa9b0bdc46f2891ada4f971863 100644 (file)
@@ -181,6 +181,7 @@ static apr_status_t dummy_connection(ap_pod_t *pod)
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_WARNING, rv, ap_server_conf,
                      "set timeout on socket to connect to listener");
+        apr_socket_close(sock);
         return rv;
     }