[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

FW: [PATCH] Quick hack patch to see if the problem is in here...

From: Sander Striker <striker_at_apache.org>
Date: 2002-07-01 23:03:46 CEST

FYI, this was the quick hack patch I fired off to Kevin to see
if it made a difference.

Sander

-----Original Message-----
From: Sander Striker [mailto:striker@apache.org]
Sent: 30 June 2002 15:58
To: kevin@pilch-bisson.net
Subject: [PATCH] Quick hack patch to see if the problem is in here...

Index: ./subversion/mod_dav_svn/repos.c
===================================================================
--- ./subversion/mod_dav_svn/repos.c
+++ ./subversion/mod_dav_svn/repos.c Sun Jun 30 14:59:33 2002
@@ -1966,8 +1966,16 @@
     return dav_svn_convert_err(serr, HTTP_INTERNAL_SERVER_ERROR,
                                "could not fetch collection members");

+ {
+ apr_pool_t *params_pool;
+ apr_pool_t *params_subpool;
+
+ params_pool = params->pool;
+ params_subpool = svn_pool_create(params_pool);
+ params->pool = params_subpool;
+
   /* iterate over the children in this collection */
- for (hi = apr_hash_first(params->pool, children); hi; hi = apr_hash_next(hi))
+ for (hi = apr_hash_first(params_pool, children); hi; hi = apr_hash_next(hi))
     {
       const void *key;
       apr_ssize_t klen;
@@ -2029,7 +2037,13 @@
       ctx->info.uri_path->len = path_len;
       ctx->uri->len = uri_len;
       ctx->repos_path->len = repos_len;
+
+ svn_pool_clear(params_subpool);
     }
+
+ params->pool = params_pool;
+ svn_pool_destroy(params_subpool);
+ }

   return NULL;
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 1 22:55:02 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.