From 776f258ddbaa6e9ebabbda6e99285f7b23c4ac09 Mon Sep 17 00:00:00 2001 From: xurui Date: Thu, 6 Jul 2023 11:04:10 +0800 Subject: [PATCH] zink: Free the cdt when an error occurs Signed-off-by: xurui Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_kopper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_kopper.c b/src/gallium/drivers/zink/zink_kopper.c index f10d27c..ac9c748 100644 --- a/src/gallium/drivers/zink/zink_kopper.c +++ b/src/gallium/drivers/zink/zink_kopper.c @@ -484,6 +484,7 @@ zink_kopper_displaytarget_create(struct zink_screen *screen, unsigned tex_usage, //moar cleanup out: + FREE(cdt); return NULL; } -- 2.7.4