]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/dav/main/props.c (dav_do_prop_subreq): Allocate escaped URI
authorJoe Orton <jorton@apache.org>
Tue, 25 Jun 2019 08:56:06 +0000 (08:56 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 25 Jun 2019 08:56:06 +0000 (08:56 +0000)
  out of propdb pool, fixing small per-resource leak during a PROPFIND
  walk.

Submitted by: jorton, rpluem

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

modules/dav/main/props.c

index f8c4e9b4a0cb51e78642cca4bd776dcd943eef6e..793c40a87f809ced629a931d550c0709ff32e12a 100644 (file)
@@ -323,7 +323,7 @@ static void dav_do_prop_subreq(dav_propdb *propdb)
 {
     /* need to escape the uri that's in the resource struct because during
      * the property walker it's not encoded. */
-    const char *e_uri = ap_escape_uri(propdb->resource->pool,
+    const char *e_uri = ap_escape_uri(propdb->p,
                                       propdb->resource->uri);
 
     /* perform a "GET" on the resource's URI (note that the resource