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 2018-08-14 10:09:32 +02:00 committed by Atomic Bot
parent 24883db908
commit 0a53af801e
1 changed files with 1 additions and 1 deletions

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);
}
/**