ostree_repo_pull_from_remotes_async: Fix leak of options

copy_option() unnecessarily passed ownership of the value
to g_variant_dict_insert_value, but that already refs, so it was leaked.

Closes: #1702
Approved by: cgwalters
This commit is contained in:
Alexander Larsson authored and Atomic Bot committed 2018-08-14 12:49:28 +00:00
1 parent 24883db908
commit 0a53af801e
1 file changed
+1 -1
+1 -1
View File
@@ -5667,7 +5667,7 @@ copy_option (GVariantDict *master_options,
{
g_autoptr(GVariant) option_v = g_variant_dict_lookup_value (master_options, key, expected_type);
if (option_v != NULL)
g_variant_dict_insert_value (slave_options, key, g_steal_pointer (&option_v));
g_variant_dict_insert_value (slave_options, key, option_v);
}
/**