From a01f201a82416bcb2fa39623d6b16bb716230080 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 12 Aug 2019 17:04:01 -0600 Subject: vulkaninfo: fix memory leaks from pNext chains Change-Id: I99965dabaf7307e52c56f779d79f259fc379c7da --- vulkaninfo/vulkaninfo.c | 2 ++ 1 file changed, 2 insertions(+) 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\n"); -- cgit v1.2.3