Skip to content

Commit af9c37d

Browse files
committed
Remove deleting infile, outfile
1 parent 6149562 commit af9c37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Libraries/Source/Compression/LZHCompress/NoxCompress.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ Bool DecompressFile (char *infile, char *outfile)
4747
// Parameter checking
4848

4949
if (( infile == NULL ) || ( outfile == NULL ))
50+
{
5051
return FALSE;
52+
}
5153

5254
inFilePtr = fopen( infile, "rb" );
5355
if ( inFilePtr )
@@ -140,8 +142,6 @@ Bool CompressFile (char *infile, char *outfile)
140142

141143
if (( infile == NULL ) || ( outfile == NULL ))
142144
{
143-
if (infile) DbgFree(infile);
144-
if (outfile) DbgFree(outfile);
145145
return FALSE;
146146
}
147147

0 commit comments

Comments
 (0)