From 2df9c15e96c45fd89d0cf5e6fb890397df4b76f9 Mon Sep 17 00:00:00 2001 From: Mathieu Eyraud <70028899+meyraud705@users.noreply.github.com> Date: Mon, 22 Feb 2021 14:51:42 +0100 Subject: [PATCH] Fix memory leak in KMSDRM_Vulkan_CreateSurface Variable `device_props` is never freed. --- src/video/kmsdrm/SDL_kmsdrmvulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/kmsdrm/SDL_kmsdrmvulkan.c b/src/video/kmsdrm/SDL_kmsdrmvulkan.c index 76a293b5a..130a14240 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvulkan.c +++ b/src/video/kmsdrm/SDL_kmsdrmvulkan.c @@ -440,6 +440,8 @@ clean: SDL_free (physical_devices); if (displays_props) SDL_free (displays_props); + if (device_props) + SDL_free (device_props); if (planes_props) SDL_free (planes_props); if (modes_props)