From bdee617d80792fed45eea4d44de968d5478cfba8 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 1 May 2016 14:37:28 +0200 Subject: [PATCH] [Coverity] Fix some resource leaks --- renderdoccmd/renderdoccmd_win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoccmd/renderdoccmd_win32.cpp b/renderdoccmd/renderdoccmd_win32.cpp index 0d0b443da..40067f156 100644 --- a/renderdoccmd/renderdoccmd_win32.cpp +++ b/renderdoccmd/renderdoccmd_win32.cpp @@ -311,6 +311,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, MultiByteToWideChar(CP_UTF8, 0, originalpath.c_str(), -1, conv, int(originalpath.size()+1)); wide_path = conv; + + delete[] conv; } // Wait for UI to exit @@ -416,6 +418,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, CloseHandle(pi.hThread); } + delete[] paramsAlloc; + return 0; }