diff -p --exclude='*~' --exclude='*.orig' --exclude='*.rej' -ur httpd-2.2.21.orig/modules/dav/main/props.c httpd-2.2.21/modules/dav/main/props.c --- httpd-2.2.21.orig/modules/dav/main/props.c 2012-01-30 15:51:59.000000000 +0100 +++ httpd-2.2.21/modules/dav/main/props.c 2012-01-30 15:52:53.000000000 +0100 @@ -563,6 +563,9 @@ DAV_DECLARE(void) dav_close_propdb(dav_p (*propdb->db_hooks->close)(propdb->db); } + if (propdb->subreq) + ap_destroy_sub_req(propdb->subreq); + /* Currently, mod_dav's pool usage doesn't allow clearing this pool. */ #if 0 apr_pool_destroy(propdb->p); @@ -576,6 +579,9 @@ void dav_close_propdb2(dav_propdb *propd (*propdb->db_hooks->close)(propdb->db); } + if (propdb->subreq) + ap_destroy_sub_req(propdb->subreq); + apr_pool_destroy(propdb->p); return; }