From 400f2496ddd6e77e07f8c8c63dc56129cdfce0c0 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 8 Sep 2020 12:03:39 +0100 Subject: [PATCH] graphics: Fix use-after-free in a debug message Diagnosed by scan-build during CI. 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 1a092536c..382465870 100644 --- a/steam-runtime-tools/graphics.c +++ b/steam-runtime-tools/graphics.c @@ -3236,9 +3236,9 @@ _srt_list_modules_from_directory (gchar **envp, } if (!g_path_is_absolute (driver_path)) { + g_debug ("We were expecting an absolute path, instead we have: %s", driver_path); g_free (full_path); g_free (driver_path); - g_debug ("We were expecting an absolute path, instead we have: %s", driver_path); goto out; } -- GitLab