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
This commit is contained in:
Alexander Larsson 2018-08-13 18:28:22 +02:00 committed by Atomic Bot
parent 016cae1573
commit 24883db908

View File

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