From 24883db9089de7549ae81ae51248f2e75095e3c5 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 13 Aug 2018 18:28:22 +0200 Subject: [PATCH] ostree_repo_static_delta_generate: Fix leak There is no need to ref the argument of g_variant_builder_add_value Closes: #1701 Approved by: jlebon --- 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 f06fad68..054ac06f 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -1521,7 +1521,7 @@ ostree_repo_static_delta_generate (OstreeRepo *self, goto out; } - g_variant_builder_add_value (part_headers, g_variant_ref (part_builder->header)); + g_variant_builder_add_value (part_headers, part_builder->header); total_compressed_size += part_builder->compressed_size; total_uncompressed_size += part_builder->uncompressed_size;