Fix for some memory usage sloppiness in 'svn log -v'.
Fix for some memory usage sloppiness in 'svn log -v'.

Patch by: D.J. Heap <djheap@dhiprovo.com>
(Tweaked by me.)

* subversion/libsvn_repos/log.c
  (detect_changed): Allocate and return the 'changed' hash set rather
    than take a pre-created one and fill it. Moved the declaration of
    'item' into the loop.  Use 'pool' for the 'changes' hash set and the
    hash iterator.  Clear 'subpool' at the start of each iteration.
  (svn_repos_get_logs): Removed allocation of 'changed_paths' --
    detect_changed() will allocate it now.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@846080 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion