httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: upload file crashes when using apr_pool_cleanup_register
Date Sun, 05 Mar 2006 03:10:25 GMT
Franky Braem <> writes:

> The following code crashes when I remove the comment before the
> apr_pool_cleanup_register (and put apr_file_close into comment
> ofcourse).

I *think* it's because apr_file_open registers a pool cleanup automatically.
So you don't need to register the cleanup, you wind up closing the file
twice when you do that.

Joe Schaefer

View raw message