summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-03 10:07:44 -0500
committerGitHub <noreply@github.com>2021-02-03 10:07:44 -0500
commit0485817978f699cee76ee408d361c8e739ff57c8 (patch)
treeb9e3175ff7e519194bedeb8c6b041f33e7a48ae0
parentf0b619dfb965650bbf4e222a75a310f69b34492e (diff)
parent5a5f54a4590e2e98bb64ac6a3926b56c93e33464 (diff)
downloadostree-0485817978f699cee76ee408d361c8e739ff57c8.tar.gz
Merge pull request #2274 from cgwalters/delta-leak
deltas: Fix leak of matches
-rw-r--r--src/libostree/ostree-repo-static-delta-compilation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c
index 893ce2fa..0f0828f7 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -636,7 +636,7 @@ try_content_rollsum (OstreeRepo *repo,
if (!get_unpacked_unlinked_content (repo, to, &tmp_to, cancellable, error))
return FALSE;
- OstreeRollsumMatches *matches = _ostree_compute_rollsum_matches (tmp_from, tmp_to);
+ g_autoptr(OstreeRollsumMatches) matches = _ostree_compute_rollsum_matches (tmp_from, tmp_to);
const guint match_ratio = (matches->bufmatches*100)/matches->total;