[0.4.14][NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831

Within the current ShowTcpTable function logic, tcpTable would be freed twice.
The bug was introduced in 0.4.13-dev-579-g b695971c7f

Remove the second tcpTable free and fix coverity #1477187.

fix picked from 0.4.15-dev-3338-g 0e75fc9240
This commit is contained in:
Joachim Henze 2021-10-28 19:55:26 +02:00
parent f4a437308b
commit 5e81087c0b

View file

@ -434,7 +434,6 @@ BOOL ShowTcpTable(VOID)
{
ConResPrintf(StdErr, IDS_ERROR_TCP_SNAPSHOT);
DoFormatMessage(error);
HeapFree(GetProcessHeap(), 0, tcpTable);
return FALSE;
}