Author: pschweitzer
Date: Sat Apr 5 15:26:12 2014
New Revision: 62624
URL:
http://svn.reactos.org/svn/reactos?rev=62624&view=rev
Log:
[DISKPART]
Fix leak
CID #716329
Modified:
trunk/reactos/base/system/diskpart/diskpart.c
Modified: trunk/reactos/base/system/diskpart/diskpart.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/diskpart/diskp…
==============================================================================
--- trunk/reactos/base/system/diskpart/diskpart.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/diskpart/diskpart.c [iso-8859-1] Sat Apr 5 15:26:12 2014
@@ -73,7 +73,10 @@
while (fgetws(tmp_string, MAX_STRING_SIZE, script) != NULL)
{
if (InterpretScript(tmp_string) == FALSE)
+ {
+ fclose(script);
return FALSE;
+ }
}
/* Close the file */