]> granicus.if.org Git - apache/commitdiff
Remove ap_destroy_context from Apache 2.0. With the name change back to
authorRyan Bloom <rbb@apache.org>
Mon, 22 May 2000 17:05:23 +0000 (17:05 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 22 May 2000 17:05:23 +0000 (17:05 +0000)
ap_pool_t, this function doesn't make sense.  This also changes all
references to ap_destroy_context back to ap_destroy_pool.

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

modules/metadata/mod_mime_magic.c
server/mpm/dexter/dexter.c

index 55dabdc6fb4070f1fa575bf41584d80ec23f80a7..29d28fb74ec6e93686ccaa8cc046f15a082b43c2 100644 (file)
@@ -2232,12 +2232,12 @@ static int uncompress(request_rec *r, int method,
     *newch = (unsigned char *) ap_palloc(r->pool, n);
     rv = ap_bread(bout, *newch, n, &n);
     if (n == 0) {
-       ap_destroy_context(sub_context);
+       ap_destroy_pool(sub_context);
        ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
            MODNAME ": read failed %s", r->filename);
        return -1;
     }
-    ap_destroy_context(sub_context);
+    ap_destroy_pool(sub_context);
     return n;
 }
 
index 47c875c7d41e3fa14d768573fb253b31efc42f24..72012d63ecce64db37c873a836db4d85a4777dca 100644 (file)
@@ -716,7 +716,7 @@ static void *worker_thread(void *arg)
     }
 
     pthread_mutex_lock(&thread_pool_parent_mutex);
-    ap_destroy_context(tpool);
+    ap_destroy_pool(tpool);
     pthread_mutex_unlock(&thread_pool_parent_mutex);
     pthread_mutex_lock(&worker_thread_count_mutex);
     worker_thread_count--;