From 2a399d9eae08be0a1b8fa2394a02aba54ede6b03 Mon Sep 17 00:00:00 2001 From: Siavash Eliasi Date: Mon, 10 Feb 2014 13:28:16 +0330 Subject: [PATCH] glx/apple: Fixed glx context memory leak in case of failure. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Kristian Høgsberg Reviewed-by: Jeremy Huddleston Sequoia: --- src/glx/apple/apple_glx_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/apple/apple_glx_context.c b/src/glx/apple/apple_glx_context.c index 0bb25b42575..8a6ded28aa2 100644 --- a/src/glx/apple/apple_glx_context.c +++ b/src/glx/apple/apple_glx_context.c @@ -142,6 +142,7 @@ apple_glx_create_context(void **ptr, Display * dpy, int screen, if (sharedac && !is_context_valid(sharedac)) { *errorptr = GLXBadContext; *x11errorptr = false; + free(ac); return true; } -- 2.30.2