From: Philip Withnall Date: Mon, 21 Nov 2022 16:34:00 +0000 (+0000) Subject: lib/pull: Fix a small leak when a variable is reused X-Git-Tag: archive/raspbian/2022.7-2+rpi1^2~13^2^2~8^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=49d54d6ca8f347a852ef8fd48e5c0bbf91cfe8fb;p=ostree.git lib/pull: Fix a small leak when a variable is reused Signed-off-by: Philip Withnall --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 86b4358a..9412f1e1 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -4712,6 +4712,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, !load_remote_repo_config (pull_data, &remote_config, cancellable, error)) goto out; + g_clear_pointer (&remote_mode_str, g_free); if (!ot_keyfile_get_value_with_default (remote_config, "core", "mode", "bare", &remote_mode_str, error)) goto out;