From 5a5f54a4590e2e98bb64ac6a3926b56c93e33464 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 2 Feb 2021 21:03:53 +0000 Subject: [PATCH] deltas: Fix leak of matches Found by ASAN. --- src/libostree/ostree-repo-static-delta-compilation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;