Author: stefan2
Date: Sun Jan 11 01:14:40 2015
New Revision: 1650844
URL: http://svn.apache.org/r1650844
Log:
* subversion/libsvn_fs_x/index.c
(l2p_page_get_offset): POOL is actually a SCRATCH_POOL.
Modified:
subversion/trunk/subversion/libsvn_fs_x/index.c
Modified: subversion/trunk/subversion/libsvn_fs_x/index.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/index.c?rev=1650844&r1=1650843&r2=1650844&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/index.c Sun Jan 11 01:14:40 2015
@@ -1556,20 +1556,21 @@ typedef struct l2p_page_baton_t
/* Return the rev / pack file offset of the item at BATON->PAGE_OFFSET in
* OFFSETS of PAGE and write it to *OFFSET.
+ * Allocate temporaries in SCRATCH_POOL.
*/
static svn_error_t *
l2p_page_get_offset(l2p_page_baton_t *baton,
const l2p_page_t *page,
const apr_off_t *offsets,
const apr_uint32_t *sub_items,
- apr_pool_t *pool)
+ apr_pool_t *scratch_pool)
{
/* overflow check */
if (page->entry_count <= baton->page_offset)
return svn_error_createf(SVN_ERR_FS_INDEX_OVERFLOW , NULL,
_("Item index %s too large in"
" revision %ld"),
- apr_psprintf(pool, "%" APR_UINT64_T_FMT,
+ apr_psprintf(scratch_pool, "%" APR_UINT64_T_FMT,
baton->item_index),
baton->revision);