vkd3d-shader: Fix use-after-free on failure.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
This commit is contained in:
Georg Lehmann 2021-09-20 23:19:38 +02:00 committed by Joshie
parent a19619ccbf
commit 1946e42367
1 changed files with 1 additions and 0 deletions

View File

@ -1229,6 +1229,7 @@ static bool vkd3d_dxil_build_entry(struct vkd3d_shader_library_entry_point *entr
if (!entry->plain_entry_point)
{
vkd3d_free(entry->mangled_entry_point);
entry->mangled_entry_point = NULL;
return false;
}