SDL: Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()

From 82d89ff4fb1457a9dd75b9023628e75d7279ac57 Mon Sep 17 00:00:00 2001
From: meyraud705 <[EMAIL REDACTED]>
Date: Mon, 5 Feb 2024 12:54:23 +0100
Subject: [PATCH] Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()

---
 src/joystick/SDL_steam_virtual_gamepad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/joystick/SDL_steam_virtual_gamepad.c b/src/joystick/SDL_steam_virtual_gamepad.c
index 2c76adbba545..602c3d80503b 100644
--- a/src/joystick/SDL_steam_virtual_gamepad.c
+++ b/src/joystick/SDL_steam_virtual_gamepad.c
@@ -219,6 +219,7 @@ SDL_bool SDL_UpdateSteamVirtualGamepadInfo(void)
     if (slot >= 0) {
         AddVirtualGamepadInfo(slot, &info);
     }
+    SDL_free(info.name);
     SDL_free(data);
 
     SDL_steam_virtual_gamepad_info_file_mtime = mtime;