diff --git a/steam-runtime-tools/graphics.c b/steam-runtime-tools/graphics.c
index 1a092536c6be0453437984e5dddc91267501aa8d..382465870e305575948bd81c39ce1a84b1c6eb9d 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;
         }