Hello,

When I was working on the previous patch, I found that the
proplist_receiver_xml function creates an iterpool, but never cleans
it.

The proplist_receiver function already does it.

[[[
Fix unbounded memory usage in the `svn proplist --xml` command.

* subversion/svn/proplist-cmd.c:
  (proplist_receiver_xml): Invoke the svn_pool_clear function
  on every iteration to clear the pool.
]]]

-- 
Timofei Zhakov
Index: subversion/svn/proplist-cmd.c
===================================================================
--- subversion/svn/proplist-cmd.c       (revision 1917991)
+++ subversion/svn/proplist-cmd.c       (working copy)
@@ -75,6 +75,8 @@ proplist_receiver_xml(void *baton,
           svn_prop_inherited_item_t *iprop =
             APR_ARRAY_IDX(inherited_props, i, svn_prop_inherited_item_t *);
 
+          svn_pool_clear(iterpool);
+
           sb = NULL;
 
           if (svn_path_is_url(iprop->path_or_url))

Reply via email to