On Wed, Apr 27, 2011 at 17:49, <[email protected]> wrote: > Author: hwright > Date: Wed Apr 27 21:49:00 2011 > New Revision: 1097257 > > URL: http://svn.apache.org/viewvc?rev=1097257&view=rev > Log: > Move the working-copy scraping part of svn_client_info3() to libsvn_wc. > > This is pretty much just a straight code copy. We can adjust a number of > things after this move (using libsvn_wc-internal APIs and such), those will > eventually follow. > > * subversion/include/private/svn_wc_private.h > (svn_wc__get_info): New.
I know the contents of this function were simply copied from existing code, but there is a potential error leak in there. The line: SVN_ERR(svn_wc__get_tree_conflict(&tree_conflict, ctx->wc_ctx, If that returns with an error, then 'err' will leak. The above line should use an err2 variable, with appropriate management of the two errors... (separately, there is a lot of simplification of the various 'return' exits at the bottom of the function) >... Cheers, -g

