diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c index d5162cd76..978ba5136 100644 --- a/src/xrt/auxiliary/vk/vk_bundle_init.c +++ b/src/xrt/auxiliary/vk/vk_bundle_init.c @@ -115,6 +115,13 @@ vk_check_required_instance_extensions(struct vk_bundle *vk, struct u_string_list have_missing = true; } + // Clean up after us. + if (props != NULL) { + free(props); + props = NULL; + prop_count = 0; + } + if (!have_missing) { return VK_SUCCESS; }