From e1fa6bee69d61ff7c40360099557da626a542f26 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Sat, 15 Nov 2025 12:14:32 -0600 Subject: [PATCH] Clean up allocated string during OOM from path normalization --- loader/loader.c | 1 + 1 file changed, 1 insertion(+) 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; }