mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
a/vk: Fix leak in extension checking code
This commit is contained in:
parent
9fc9bd5dbb
commit
d72627ceb7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue