Use correct allocator in debug_utils.c
authorCharles Giessen <charles@lunarg.com>
Fri, 21 Oct 2022 20:44:16 +0000 (14:44 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 21 Oct 2022 21:43:39 +0000 (15:43 -0600)
commit9cd0dc8cd228d1acd1f3c61ae545640d02318a0c
treedfebc0b17078a5a1aa835ce7a4c39f493d110a0a
parentae54ca0d01f0259441a93b7681eebb28102f28d8
Use correct allocator in debug_utils.c

loader_calloc_with_instance_fallback is used in places where a user can
supply their own allocator, but should default to the allocator used with
the instance otherwise. The issue was that loader_free was being used with
objects created with the instance allocator, but loader_free only takes the
user provided one, leading to leaks.
loader/debug_utils.c