Module: Mesa
Branch: main
Commit: 776f258ddbaa6e9ebabbda6e99285f7b23c4ac09
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=776f258ddbaa6e9ebabbda6e99285f7b23c4ac09

Author: xurui <[email protected]>
Date:   Thu Jul  6 11:04:10 2023 +0800

zink: Free the cdt when an error occurs

Signed-off-by: xurui <[email protected]>
Reviewed-by: Mike Blumenkrantz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24012>

---

 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 f10d27c31b5..ac9c7489d0f 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;
 }
 

Reply via email to