Prevent prevent file descriptor leak in ShrinkDebugFile()

This commit is contained in:
Tariq Bashir authored and Wladimir J. van der Laan committed 2013-04-27 16:00:28 +02:00
1 parent 63888d43be
commit 6e34d9b12a
1 file changed
+2
+2
View File
@@ -1231,6 +1231,8 @@ void ShrinkDebugFile()
fclose(file); fclose(file);
} }
} }
else if(file != NULL)
fclose(file);
} }