Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Loader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Kuegler <kevinkuegler@outlook.com>2022-06-15 19:56:34 +0300
committerGitHub <noreply@github.com>2022-06-15 19:56:34 +0300
commita60a147ef62914d322f48ce316c91f62e92e8c1b (patch)
tree4634bc37122f40e88cf3913bcd5e2342f0a16b39
parenta9488188da933e32d445aa8daf3458c44dc9fc2b (diff)
Move file_vers free() before return statement
Some goto calls skipped the free call
-rw-r--r--loader/loader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index a95dde6bd..e49a82896 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2631,10 +2631,12 @@ static VkResult loader_add_layer_properties(const struct loader_instance *inst,
}
}
- loader_instance_heap_free(inst, file_vers);
+
out:
-
+ if(NULL != file_vers) {
+ loader_instance_heap_free(inst, file_vers);
+ }
return result;
}