[TCPIP_DRVTEST]
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 2 Dec 2014 18:12:26 +0000 (18:12 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 2 Dec 2014 18:12:26 +0000 (18:12 +0000)
 - Do not try to HeapFree a stack buffer.

svn path=/trunk/; revision=65549

rostests/drivers/tcpip/InterfaceInfo.c

index 872160a..3d8b7ac 100644 (file)
@@ -102,6 +102,7 @@ START_TEST(InterfaceInfo)
         trace("\tIndex %lu, name %S\n", pInterfaceInfo->Adapter[i].Index, pInterfaceInfo->Adapter[i].Name);
     }
 
         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);
 }
     CloseHandle(FileHandle);
 }