summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-09 14:27:50 +0100
committerGitHub <noreply@github.com>2021-03-09 14:27:50 +0100
commit8459d52fbca89b98fdf1d4955d34c2ee5ea7fcd6 (patch)
tree1014d95b91b90ee116540f2aefb45159843bcdc6
parentf9a38436fa10c10f6904c138d28c96efd212bfb0 (diff)
parent60881b75ecb4166c89bb9b3392b5126557aaa6f0 (diff)
downloadostree-8459d52fbca89b98fdf1d4955d34c2ee5ea7fcd6.tar.gz
Merge pull request #2292 from pwithnall/summary-leak
ostree-repo-pull: Fix a leak of the summary data if loading from cache
-rw-r--r--src/libostree/ostree-repo-pull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index a95190a5..6c5bffcf 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -6674,7 +6674,7 @@ ostree_repo_remote_fetch_summary_with_options (OstreeRepo *self,
return FALSE;
}
- if (signatures)
+ if (signatures && !summary)
{
if (!_ostree_repo_load_cache_summary_if_same_sig (self,
name,