Merge pull request #2274 from cgwalters/delta-leak

deltas: Fix leak of matches
This commit is contained in:
OpenShift Merge Robot 2021-02-03 10:07:44 -05:00 committed by GitHub
commit 0485817978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;