diff options
author | Colin Walters <walters@verbum.org> | 2021-02-02 21:03:53 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-02-02 21:26:43 +0000 |
commit | 5a5f54a4590e2e98bb64ac6a3926b56c93e33464 (patch) | |
tree | a1424a032685ed4b9031fe4b3cf6eb37f36b3076 | |
parent | c216a438b8f9b4b8405bcac35211aa21d5e341a8 (diff) | |
download | ostree-5a5f54a4590e2e98bb64ac6a3926b56c93e33464.tar.gz |
deltas: Fix leak of matches
Found by ASAN.
-rw-r--r-- | src/libostree/ostree-repo-static-delta-compilation.c | 2 |
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; |