Remove a few memory and error leaks from the ra_serf lock/unlock code by moving to the common iterpool pattern.
Remove a few memory and error leaks from the ra_serf lock/unlock code by moving
to the common iterpool pattern.

* subversion/libsvn_ra_serf/locks.c
  (handle_lock): Return more interesting error code.
  (svn_ra_serf__lock): Rename pool variables and destroy iterpool when we are
    finished. Use hash helper functions.
  (svn_ra_serf__unlock): Rename pool variables, destroy iterpool and properly
    clear errors when lock_func is NULL.


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

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion