[gnome-builder] flatpak: ensure filename is not leaked
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: ensure filename is not leaked
- Date: Fri, 18 Nov 2016 02:53:42 +0000 (UTC)
commit c76b12da6584146a681771b685a54ef2dd486a1b
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 17 18:52:56 2016 -0800
flatpak: ensure filename is not leaked
plugins/flatpak/gbp-flatpak-runtime-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime-provider.c b/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 03c9c0c..1d100dc 100644
--- a/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -391,7 +391,7 @@ gbp_flatpak_runtime_provider_load_manifests (GbpFlatpakRuntimeProvider *self,
for (guint i = 0; i < ar->len; i++)
{
FlatpakManifest *manifest = g_ptr_array_index (ar, i);
- gchar *filename;
+ g_autofree gchar *filename = NULL;
g_autofree gchar *hash = NULL;
g_autofree gchar *id = NULL;
g_autofree gchar *manifest_data = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]