Author: tfaber
Date: Sun Feb  5 15:47:41 2012
New Revision: 55430

URL: http://svn.reactos.org/svn/reactos?rev=55430&view=rev
Log:
[CRT]
- Fix multiple free in msvcrt_free_io. Fixes VLC Player crash on exit. Wine 
already has it right.

Modified:
    trunk/reactos/lib/sdk/crt/stdio/file.c

Modified: trunk/reactos/lib/sdk/crt/stdio/file.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?rev=55430&r1=55429&r2=55430&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Sun Feb  5 15:47:41 2012
@@ -966,7 +966,7 @@
             free(__pioinfo[i]);
 
     for(i=0; i<sizeof(fstream)/sizeof(fstream[0]); i++)
-            free(fstream[i/FD_BLOCK_SIZE]);
+            free(fstream[i]);
 
     file_cs.DebugInfo->Spare[0] = 0;
     DeleteCriticalSection(&file_cs);


Reply via email to