From 25eaf9a2b3fe91fd5c8cac91247e30271ee33b2c Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 29 Sep 2020 15:00:35 +0100 Subject: [PATCH] graphics: Don't leak array of directory members Signed-off-by: Simon McVittie <smcv@collabora.com> --- steam-runtime-tools/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam-runtime-tools/graphics.c b/steam-runtime-tools/graphics.c index 961cad36c..861c3a696 100644 --- a/steam-runtime-tools/graphics.c +++ b/steam-runtime-tools/graphics.c @@ -1765,7 +1765,7 @@ load_json_dir (const char *sysroot, g_autofree gchar *suffixed_dir = NULL; const char *iter_dir; const char *member; - GPtrArray *members; + g_autoptr(GPtrArray) members = NULL; gsize i; g_return_if_fail (load_json_cb != NULL); -- GitLab