From a92159c8ffad474cea46a01141d435c06e9fb5bc Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 19 Sep 2011 07:30:02 +0000 Subject: [PATCH] [HPP] Fix memory leak svn path=/trunk/; revision=53743 --- reactos/tools/hpp/hpp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/tools/hpp/hpp.c b/reactos/tools/hpp/hpp.c index 1591e4881e6..07267e68997 100644 --- a/reactos/tools/hpp/hpp.c +++ b/reactos/tools/hpp/hpp.c @@ -511,7 +511,7 @@ ParseInputFile(const char *pszInFile, FILE *fileOut) int main(int argc, char* argv[]) { - char *pszInFolder, *pszInFile, *pszOutFile; + char *pszInFile, *pszOutFile; FILE* fileOut; int ret; @@ -523,7 +523,6 @@ main(int argc, char* argv[]) pszInFile = convert_path(argv[1]); pszOutFile = convert_path(argv[2]); - pszInFolder = GetFolder(pszInFile); fileOut = fopen(pszOutFile, "wb"); if (fileOut == NULL) @@ -535,6 +534,8 @@ main(int argc, char* argv[]) ret = ParseInputFile(pszInFile, fileOut); fclose(fileOut); + free(pszInFile); + free(pszOutFile); return ret; }