From: Joe Orton Date: Tue, 25 Jun 2019 08:56:06 +0000 (+0000) Subject: * modules/dav/main/props.c (dav_do_prop_subreq): Allocate escaped URI X-Git-Tag: 2.5.0-alpha2-ci-test-only~2005 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb473477f222534cf37237a6c93150521faaf74a;p=thirdparty%2Fapache%2Fhttpd.git * modules/dav/main/props.c (dav_do_prop_subreq): Allocate escaped URI 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 --- diff --git a/modules/dav/main/props.c b/modules/dav/main/props.c index f8c4e9b4a0c..793c40a87f8 100644 --- a/modules/dav/main/props.c +++ b/modules/dav/main/props.c @@ -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