mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[HPP]
Fix memory leak svn path=/trunk/; revision=53743
This commit is contained in:
parent
a728acae67
commit
a92159c8ff
|
@ -511,7 +511,7 @@ ParseInputFile(const char *pszInFile, FILE *fileOut)
|
||||||
int
|
int
|
||||||
main(int argc, char* argv[])
|
main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
char *pszInFolder, *pszInFile, *pszOutFile;
|
char *pszInFile, *pszOutFile;
|
||||||
FILE* fileOut;
|
FILE* fileOut;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -523,7 +523,6 @@ main(int argc, char* argv[])
|
||||||
|
|
||||||
pszInFile = convert_path(argv[1]);
|
pszInFile = convert_path(argv[1]);
|
||||||
pszOutFile = convert_path(argv[2]);
|
pszOutFile = convert_path(argv[2]);
|
||||||
pszInFolder = GetFolder(pszInFile);
|
|
||||||
|
|
||||||
fileOut = fopen(pszOutFile, "wb");
|
fileOut = fopen(pszOutFile, "wb");
|
||||||
if (fileOut == NULL)
|
if (fileOut == NULL)
|
||||||
|
@ -535,6 +534,8 @@ main(int argc, char* argv[])
|
||||||
ret = ParseInputFile(pszInFile, fileOut);
|
ret = ParseInputFile(pszInFile, fileOut);
|
||||||
|
|
||||||
fclose(fileOut);
|
fclose(fileOut);
|
||||||
|
free(pszInFile);
|
||||||
|
free(pszOutFile);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue