27 Jul
2023
27 Jul
'23
5:38 a.m.
Wouldn't we be leaking `buffer.data` in case `ctx->result != 0`, but `buffer.status = 0` ?
Yes, in fact we're leaking it either way; if allocation fails the existing memory is not freed, so this was already a problem. I'll add a patch to fix it. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/288#note_40413