forked from Mirrors/flatpak-builder
flatpak_oci_registry_store_json: Don't leak GBytes
parent
7267669ee1
commit
507e4dd355
|
@ -734,7 +734,7 @@ flatpak_oci_registry_store_json (FlatpakOciRegistry *self,
|
|||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
GBytes *bytes = flatpak_json_to_bytes (json);
|
||||
g_autoptr(GBytes) bytes = flatpak_json_to_bytes (json);
|
||||
g_autofree char *digest = NULL;
|
||||
|
||||
digest = flatpak_oci_registry_store_blob (self, bytes, cancellable, error);
|
||||
|
|
Loading…
Reference in New Issue