mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
Fix leak when signing
_ostree_detached_metadata_append_gpg_sig() was returning a floating ref, but all users were using g_autoptr. Fix it by adding a ref-sink.
This commit is contained in:
parent
74bae256fe
commit
bb2649a8c0
@ -2675,7 +2675,7 @@ _ostree_detached_metadata_append_gpg_sig (GVariant *existing_metadata,
|
||||
_OSTREE_METADATA_GPGSIGS_NAME,
|
||||
g_variant_builder_end (signature_builder));
|
||||
|
||||
return g_variant_dict_end (&metadata_dict);
|
||||
return g_variant_ref_sink (g_variant_dict_end (&metadata_dict));
|
||||
}
|
||||
#endif /* OSTREE_DISABLE_GPGME */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user