]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
When ap_register_filter() registers a cleanup function, specify
authorJeff Trawick <trawick@apache.org>
Mon, 14 Aug 2000 17:50:02 +0000 (17:50 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 14 Aug 2000 17:50:02 +0000 (17:50 +0000)
apr_null_cleanup() instead of NULL to indicate that no child
cleanup is desired.  (With NULL, we branch to zero.)

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

server/util_filter.c

index bbd6f28b5f010df8bfa1a4c9eee5f8381dbec3fb..31cad818a17031321f702dc7bb18abe7a730dd6c 100644 (file)
@@ -113,7 +113,7 @@ API_EXPORT(void) ap_register_filter(const char *name,
     frec->next = registered_filters;
     registered_filters = frec;
 
-    apr_register_cleanup(FILTER_POOL, NULL, filter_cleanup, NULL);
+    apr_register_cleanup(FILTER_POOL, NULL, filter_cleanup, apr_null_cleanup);
 }
 
 API_EXPORT(void) ap_add_filter(const char *name, void *ctx, request_rec *r)