[email protected] wrote on Wed, Nov 10, 2010 at 18:08:17 -0000:
> +  err = svn_fs_recover(REPO_NAME, NULL, NULL, pool);
> +  if (! err)
> +    return svn_error_create(SVN_ERR_TEST_FAILED, NULL,
> +                            "Expected SVN_ERR_FS_CORRUPT error; got none");
> +  if (err->apr_err != SVN_ERR_FS_CORRUPT)
> +    return svn_error_create(SVN_ERR_TEST_FAILED, err,
> +                            "Expected SVN_ERR_FS_CORRUPT error; got:");

Suppose err->apr_err == SVN_ERR_FS_CORRUPT, won't that leak the error?

>    return SVN_NO_ERROR;

Reply via email to