diff options
author | Charles Giessen <charles@lunarg.com> | 2019-08-12 17:04:01 -0600 |
---|---|---|
committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2019-08-13 14:30:52 -0600 |
commit | a01f201a82416bcb2fa39623d6b16bb716230080 (patch) | |
tree | b49a2f00c08f803f4674515d1083e1d46fab4517 | |
parent | 650eea7b0fbcdfaee9403662ad050b51a956e5bb (diff) | |
download | vulkan-tools-a01f201a82416bcb2fa39623d6b16bb716230080.tar.gz |
vulkaninfo: fix memory leaks from pNext chains
Change-Id: I99965dabaf7307e52c56f779d79f259fc379c7da
-rw-r--r-- | vulkaninfo/vulkaninfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c index c499937d..5103e79e 100644 --- a/vulkaninfo/vulkaninfo.c +++ b/vulkaninfo/vulkaninfo.c @@ -1281,6 +1281,7 @@ static void AppGpuDestroy(struct AppGpu *gpu) { free(gpu->queue_props2); freepNextChain(gpu->props2.pNext); + freepNextChain(gpu->memory_props2.pNext); } } @@ -2130,6 +2131,7 @@ static void AppDumpSurfaceCapabilities(struct AppInstance *inst, struct AppGpu * } place = work->pNext; } + freepNextChain(surface_capabilities2.pNext); } if (html_output) { fprintf(out, "\t\t\t\t\t</details>\n"); |