subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1404520 - /subversion/trunk/subversion/libsvn_ra/compat.c
Date Thu, 01 Nov 2012 09:48:16 GMT
Author: philip
Date: Thu Nov  1 09:48:15 2012
New Revision: 1404520

URL: http://svn.apache.org/viewvc?rev=1404520&view=rev
Log:
Fix a memory use bug identified by valgrind.

* subversion/libsvn_ra/compat.c
  (svn_ra__get_inherited_props_walk): Avoid the iteration pool for
   an object used across iterations.

Modified:
    subversion/trunk/subversion/libsvn_ra/compat.c

Modified: subversion/trunk/subversion/libsvn_ra/compat.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/compat.c?rev=1404520&r1=1404519&r2=1404520&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra/compat.c (original)
+++ subversion/trunk/subversion/libsvn_ra/compat.c Thu Nov  1 09:48:15 2012
@@ -903,7 +903,7 @@ svn_ra__get_inherited_props_walk(svn_ra_
       svn_error_t *err;
 
       svn_pool_clear(iterpool);
-      parent_url = svn_uri_dirname(parent_url, iterpool);
+      parent_url = svn_uri_dirname(parent_url, scratch_pool);
       SVN_ERR(svn_ra_reparent(session, parent_url, iterpool));
       err = session->vtable->get_dir(session, NULL, NULL,
                                      &parent_props, "",



Mime
View raw message