You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2022/08/17 11:00:01 UTC
svn commit: r1903484 - /httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs
Author: jorton
Date: Wed Aug 17 11:00:00 2022
New Revision: 1903484
URL: http://svn.apache.org/viewvc?rev=1903484&view=rev
Log:
* glue/perl/xsbuilder/APR/Request/Request.xs
(upload_hook): Register the cleanup as a child cleanup, avoiding
a segfault in apr_pool_cleanup_for_exec and a GCC warning.
Modified:
httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs
Modified: httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs?rev=1903484&r1=1903483&r2=1903484&view=diff
==============================================================================
--- httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs (original)
+++ httpd/apreq/trunk/glue/perl/xsbuilder/APR/Request/Request.xs Wed Aug 17 11:00:00 2022
@@ -233,7 +233,7 @@ upload_hook(obj, sub)
#endif
apreq_hook_add(req, apreq_hook_make(req->pool, apreq_xs_upload_hook, NULL, ctx));
- apr_pool_cleanup_register(req->pool, ctx, upload_hook_cleanup, NULL);
+ apr_pool_cleanup_register(req->pool, ctx, upload_hook_cleanup, upload_hook_cleanup);
APR::Pool