Author: pschweitzer
Date: Mon Sep 19 07:30:02 2011
New Revision: 53743
URL:
http://svn.reactos.org/svn/reactos?rev=53743&view=rev
Log:
[HPP]
Fix memory leak
Modified:
trunk/reactos/tools/hpp/hpp.c
Modified: trunk/reactos/tools/hpp/hpp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/hpp/hpp.c?rev=53743&…
==============================================================================
--- trunk/reactos/tools/hpp/hpp.c [iso-8859-1] (original)
+++ trunk/reactos/tools/hpp/hpp.c [iso-8859-1] Mon Sep 19 07:30:02 2011
@@ -511,7 +511,7 @@
int
main(int argc, char* argv[])
{
- char *pszInFolder, *pszInFile, *pszOutFile;
+ char *pszInFile, *pszOutFile;
FILE* fileOut;
int ret;
@@ -523,7 +523,6 @@
pszInFile = convert_path(argv[1]);
pszOutFile = convert_path(argv[2]);
- pszInFolder = GetFolder(pszInFile);
fileOut = fopen(pszOutFile, "wb");
if (fileOut == NULL)
@@ -535,6 +534,8 @@
ret = ParseInputFile(pszInFile, fileOut);
fclose(fileOut);
+ free(pszInFile);
+ free(pszOutFile);
return ret;
}