summaryrefslogtreecommitdiff
path: root/loader/loader.c
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2023-09-01 14:25:10 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-30 13:40:46 +0800
commit5fb164a28aa5a1c85f93369a2fb8744d9238e5e5 (patch)
tree4b5105908c2cc4574c5ca222af88b542a68952d4 /loader/loader.c
parent59b00a56b500a7f29afad5e59bc31e799e811de5 (diff)
downloadVulkan-Loader-5fb164a28aa5a1c85f93369a2fb8744d9238e5e5.tar.gz
Vulkan-Loader-5fb164a28aa5a1c85f93369a2fb8744d9238e5e5.tar.bz2
Vulkan-Loader-5fb164a28aa5a1c85f93369a2fb8744d9238e5e5.zip
1. Add dlog for Tizen 2. Fix memory leak issue for generic list Change-Id: Id1d95430af27e11bf76c83e3933475bf8eb6886d
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 1a5f938e..9eb6bc66 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -714,8 +714,7 @@ VkResult loader_init_generic_list(const struct loader_instance *inst, struct loa
}
void loader_destroy_generic_list(const struct loader_instance *inst, struct loader_generic_list *list) {
- if (list->count !=0)
- loader_instance_heap_free(inst, list->list);
+ loader_instance_heap_free(inst, list->list);
list->count = 0;
list->capacity = 0;
list->list = NULL;