ostree-repo-pull: Take correct out path on error

Like every other error return path in this function, jump to the `out`
label on error here. Returning directly will cause leaks.

Spotted by reading the code, not actually necessarily encountered in the
wild.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-08 15:36:27 +00:00
parent 775ff6e687
commit 8cc8e68768
1 changed files with 1 additions and 1 deletions

View File

@ -4020,7 +4020,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
&pull_data->signapi_commit_verifiers, &pull_data->signapi_commit_verifiers,
&pull_data->signapi_summary_verifiers, &pull_data->signapi_summary_verifiers,
error)) error))
return FALSE; goto out;
} }
pull_data->phase = OSTREE_PULL_PHASE_FETCHING_REFS; pull_data->phase = OSTREE_PULL_PHASE_FETCHING_REFS;