From 7e61696de960fa7ff7b45042923dc4d6bcc85886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Thu, 12 Jan 2023 10:04:37 +0100 Subject: [PATCH] dri: Do not free the given screen in initScreen implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The given screen is already freed by the caller in case a NULL-pointer is returned by the implementation. Signed-off-by: Corentin Noël Reviewed-by: Gert Wollny Part-of: --- src/gallium/frontends/dri/drisw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/frontends/dri/drisw.c b/src/gallium/frontends/dri/drisw.c index aceacc38c08..bc4411e3530 100644 --- a/src/gallium/frontends/dri/drisw.c +++ b/src/gallium/frontends/dri/drisw.c @@ -596,7 +596,6 @@ fail: dri_destroy_screen_helper(screen); if (screen->dev) pipe_loader_release(&screen->dev, 1); - FREE(screen); return NULL; }