Author: jgardou
Date: Tue Dec  2 18:12:26 2014
New Revision: 65549

URL: http://svn.reactos.org/svn/reactos?rev=65549&view=rev
Log:
[TCPIP_DRVTEST]
 - Do not try to HeapFree a stack buffer.

Modified:
    trunk/rostests/drivers/tcpip/InterfaceInfo.c

Modified: trunk/rostests/drivers/tcpip/InterfaceInfo.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/tcpip/InterfaceInfo.c?rev=65549&r1=65548&r2=65549&view=diff
==============================================================================
--- trunk/rostests/drivers/tcpip/InterfaceInfo.c        [iso-8859-1] (original)
+++ trunk/rostests/drivers/tcpip/InterfaceInfo.c        [iso-8859-1] Tue Dec  2 
18:12:26 2014
@@ -102,6 +102,7 @@
         trace("\tIndex %lu, name %S\n", pInterfaceInfo->Adapter[i].Index, 
pInterfaceInfo->Adapter[i].Name);
     }
 
-    HeapFree(GetProcessHeap(), 0, pInterfaceInfo);
+    if (pInterfaceInfo != &InterfaceInfo)
+        HeapFree(GetProcessHeap(), 0, pInterfaceInfo);
     CloseHandle(FileHandle);
 }


Reply via email to