Skip to content

Commit de38ca2

Browse files
committed
loader: Fix double free on Windows
1 parent d745850 commit de38ca2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

loader/loader.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ VkResult normalize_path(const struct loader_instance *inst, char **passed_in_pat
476476
char *new_path = loader_instance_heap_realloc(inst, path, path_len, actual_len + 1, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
477477
if (NULL == new_path) {
478478
loader_instance_heap_free(inst, path);
479+
path = NULL;
479480
res = VK_ERROR_OUT_OF_HOST_MEMORY;
480481
goto out;
481482
}

0 commit comments

Comments
 (0)