From c3f3fd735182454cd08bb65cf1fd41032dff86f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 31 May 2024 12:27:30 +0200 Subject: [PATCH] vkerror: free the error string after usage g_set_error already used the var string, can clear it now. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkerror.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkerror.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkerror.c index 293dd8a5ce..ed4c663381 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkerror.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkerror.c @@ -128,6 +128,7 @@ gst_vulkan_error_to_g_error (VkResult result, GError ** error, g_set_error (error, GST_VULKAN_ERROR, result, "%s (0x%x, %i): %s", result_str, result, result, string); + g_free (string); return result; }