diff --git a/loader/loader.c b/loader/loader.c index 6e4f0d94b..46d96b4f1 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -636,6 +636,7 @@ VkResult fixup_library_binary_path(const struct loader_instance *inst, char **li // Normalize the path so that the comparison doesn't yield false positives res = normalize_path(inst, &os_determined_lib_name); if (res == VK_ERROR_OUT_OF_HOST_MEMORY) { + loader_instance_heap_free(inst, os_determined_lib_name); return res; }