From 782f7fe0c7ee746d4746dff7a4f7ead1af220a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 14 Feb 2019 20:19:21 +0100 Subject: [PATCH] WGL: Fix leak on format attrib query failure This was found by Coverity Scan. --- src/wgl_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wgl_context.c b/src/wgl_context.c index 0ffe2cfc..ad1ffa55 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -146,6 +146,8 @@ static int choosePixelFormat(_GLFWwindow* window, { _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, "WGL: Failed to retrieve pixel format attributes"); + + free(usableConfigs); return 0; }