a/vk: Fix leak in extension checking code

This commit is contained in:
Jakob Bornecrantz 2023-10-02 13:45:28 +01:00 committed by Simon Zeni
parent 9fc9bd5dbb
commit d72627ceb7

View file

@ -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;
}