From cdc5cd499fa2e564f9e48b838b295ba1bed23279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 7 Aug 2017 14:53:51 +0200 Subject: [PATCH] libs/vkd3d: Avoid potential double free. --- libs/vkd3d/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c index 66406f11..f662b360 100644 --- a/libs/vkd3d/state.c +++ b/libs/vkd3d/state.c @@ -705,6 +705,7 @@ static HRESULT d3d12_root_signature_init(struct d3d12_root_signature *root_signa set_desc.pBindings = binding_desc; vr = VK_CALL(vkCreateDescriptorSetLayout(device->vk_device, &set_desc, NULL, &root_signature->vk_set_layout)); vkd3d_free(binding_desc); + binding_desc = NULL; if (vr < 0) { WARN("Failed to create Vulkan descriptor set layout, vr %d.\n", vr);