From 507e4dd35501c39f74d0d13f20edf5c6785f52a6 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 19 Dec 2016 11:16:27 +0100 Subject: [PATCH] flatpak_oci_registry_store_json: Don't leak GBytes --- common/flatpak-oci-registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-oci-registry.c b/common/flatpak-oci-registry.c index f6a81839..5336ef88 100644 --- a/common/flatpak-oci-registry.c +++ b/common/flatpak-oci-registry.c @@ -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);