[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: r1577280 [1/3] - fsfs-lock-many

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 4 Apr 2014 12:12:21 +0100 (BST)

Hi Philip.

> Modified: subversion/trunk/subversion/libsvn_fs_fs/lock.c
> ==============================================================================

> +static svn_error_t *
> +unlock_single(svn_fs_t *fs,
> +              svn_lock_t *lock,
> +              apr_pool_t *pool)
> +{
> +  struct unlock_baton ub;
> +  svn_sort__item_t item;
> +  apr_array_header_t *targets = apr_array_make(pool, 1,
> +                                               sizeof(svn_sort__item_t));
> +  item.key = lock->path;
> +  item.klen = strlen(item.key);
> +  item.value = (char*)lock->token;
> +  APR_ARRAY_PUSH(targets, svn_sort__item_t) = item;
> +
> +  ub.fs = fs;
> +  ub.targets = targets;
> +  ub.skip_check = TRUE;
> +  ub.result_pool = pool;
> +
> +  SVN_ERR(unlock_body(&ub, pool));

This leaks the error that's potentially returned in UB->fs_err, doesn't it?

(And the same in the equivalent FSX function.)

> +
> +  return SVN_NO_ERROR;
> }

- Julian
Received on 2014-04-04 13:13:00 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.