zink: Free the cdt when an error occurs

Signed-off-by: xurui <xurui@kylinos.cn>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24012>
This commit is contained in:
xurui
2023-07-06 11:04:10 +08:00
committed by Marge Bot
parent 0a6dd797ea
commit 776f258ddb

View File

@@ -484,6 +484,7 @@ zink_kopper_displaytarget_create(struct zink_screen *screen, unsigned tex_usage,
//moar cleanup
out:
FREE(cdt);
return NULL;
}