Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35F947A50 for ; Wed, 12 Oct 2011 20:11:52 +0000 (UTC) Received: (qmail 63352 invoked by uid 500); 12 Oct 2011 20:11:52 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 63328 invoked by uid 500); 12 Oct 2011 20:11:52 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 63321 invoked by uid 99); 12 Oct 2011 20:11:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 20:11:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2011 20:11:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D527323888FE for ; Wed, 12 Oct 2011 20:11:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1182566 - /subversion/branches/tree-read-api/subversion/libsvn_client/tree.c Date: Wed, 12 Oct 2011 20:11:28 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111012201128.D527323888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: julianfoad Date: Wed Oct 12 20:11:28 2011 New Revision: 1182566 URL: http://svn.apache.org/viewvc?rev=1182566&view=rev Log: On the 'tree-read-api' branch: * subversion/libsvn_client/tree.c (wc_tree_get_dir): Allocate results in the result pool not the scratch pool. Found by: gstein Modified: subversion/branches/tree-read-api/subversion/libsvn_client/tree.c Modified: subversion/branches/tree-read-api/subversion/libsvn_client/tree.c URL: http://svn.apache.org/viewvc/subversion/branches/tree-read-api/subversion/libsvn_client/tree.c?rev=1182566&r1=1182565&r2=1182566&view=diff ============================================================================== --- subversion/branches/tree-read-api/subversion/libsvn_client/tree.c (original) +++ subversion/branches/tree-read-api/subversion/libsvn_client/tree.c Wed Oct 12 20:11:28 2011 @@ -332,7 +332,7 @@ wc_tree_get_dir(svn_client_tree_t *tree, for (i = 0; i < children->nelts; i++) { const char *child_abspath = APR_ARRAY_IDX(children, i, const char *); - const char *name = svn_dirent_basename(child_abspath, scratch_pool); + const char *name = svn_dirent_basename(child_abspath, result_pool); apr_hash_set(*dirents, name, APR_HASH_KEY_STRING, name); }