mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 01:27:19 +08:00
Within the current ShowTcpTable function logic, tcpTable would be freed twice.
The bug was introduced in b695971c.
Remove the second tcpTable free and fix coverity #1477187. CORE-17831
This commit is contained in:
committed by
Stanislav Motylkov
parent
f4ccc518e3
commit
0e75fc9240
@@ -434,7 +434,6 @@ BOOL ShowTcpTable(VOID)
|
||||
{
|
||||
ConResPrintf(StdErr, IDS_ERROR_TCP_SNAPSHOT);
|
||||
DoFormatMessage(error);
|
||||
HeapFree(GetProcessHeap(), 0, tcpTable);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user