mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
[IPHLPAPI] Don't leak memory
This commit is contained in:
parent
c949a12506
commit
d76ac645e8
1 changed files with 10 additions and 0 deletions
|
@ -876,6 +876,8 @@ DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, U
|
|||
qsort(pTheirTcpTable->table, pTheirTcpTable->dwNumEntries,
|
||||
sizeof(MIB_TCPROW), TcpTableSorter);
|
||||
}
|
||||
|
||||
free(pOurTcpTable);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -918,6 +920,8 @@ DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, U
|
|||
qsort(pTheirTcpTable->table, pTheirTcpTable->dwNumEntries,
|
||||
sizeof(MIB_TCPROW), TcpTableSorter);
|
||||
}
|
||||
|
||||
free(pOurTcpTable);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -943,6 +947,8 @@ DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, U
|
|||
qsort(pTheirTcpTable->table, pTheirTcpTable->dwNumEntries,
|
||||
sizeof(MIB_TCPROW_OWNER_PID), TcpTableSorter);
|
||||
}
|
||||
|
||||
free(pOurTcpTable);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -986,6 +992,8 @@ DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, U
|
|||
qsort(pTheirTcpTable->table, pTheirTcpTable->dwNumEntries,
|
||||
sizeof(MIB_TCPROW_OWNER_PID), TcpTableSorter);
|
||||
}
|
||||
|
||||
free(pOurTcpTable);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1029,6 +1037,8 @@ DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, U
|
|||
qsort(pTheirTcpTable->table, pTheirTcpTable->dwNumEntries,
|
||||
sizeof(MIB_TCPROW_OWNER_PID), TcpTableSorter);
|
||||
}
|
||||
|
||||
free(pOurTcpTable);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue