lib/pull: Fix a small leak when a variable is reused

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-11-21 16:34:00 +00:00
parent 9ae86131ed
commit 49d54d6ca8
1 changed files with 1 additions and 0 deletions

View File

@ -4712,6 +4712,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
!load_remote_repo_config (pull_data, &remote_config, cancellable, error)) !load_remote_repo_config (pull_data, &remote_config, cancellable, error))
goto out; goto out;
g_clear_pointer (&remote_mode_str, g_free);
if (!ot_keyfile_get_value_with_default (remote_config, "core", "mode", "bare", if (!ot_keyfile_get_value_with_default (remote_config, "core", "mode", "bare",
&remote_mode_str, error)) &remote_mode_str, error))
goto out; goto out;