https://git.reactos.org/?p=reactos.git;a=commitdiff;h=182a31074f610715fd286582ffc6f7fb71fee73b

commit 182a31074f610715fd286582ffc6f7fb71fee73b
Author:     Thomas Faber <[email protected]>
AuthorDate: Wed Feb 21 18:40:23 2018 +0100
Commit:     Thomas Faber <[email protected]>
CommitDate: Wed Feb 21 18:42:43 2018 +0100

    [IPHLPAPI] Fix memory leak in getNumRoutes. CORE-14353
---
 dll/win32/iphlpapi/ipstats_reactos.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dll/win32/iphlpapi/ipstats_reactos.c 
b/dll/win32/iphlpapi/ipstats_reactos.c
index e416d4842b..2b981c1112 100644
--- a/dll/win32/iphlpapi/ipstats_reactos.c
+++ b/dll/win32/iphlpapi/ipstats_reactos.c
@@ -397,6 +397,7 @@ DWORD getNumRoutes(void)
 
     TRACE("numRoutes: %d\n", (int)numRoutes);
 
+    tdiFreeThingSet( entitySet );
     closeTcpFile( tcpFile );
 
     return numRoutes;

Reply via email to