From fb68232f16df5e20132f911d2e1edf64f7145bcb Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 2 Aug 2019 13:24:21 +0200 Subject: Free interface list when aborting in installer Signed-off-by: Jason A. Donenfeld --- installer/installation.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/installation.c b/installer/installation.c index b0644a4..e31124b 100644 --- a/installer/installation.c +++ b/installer/installation.c @@ -432,7 +432,10 @@ ForceCloseWintunAdapterHandle(_In_ HDEVINFO DeviceInfoSet, _In_ SP_DEVINFO_DATA if (Ret == CR_SUCCESS) break; if (Ret != CR_BUFFER_SMALL) + { + free(InterfaceList); return FALSE; + } } HANDLE NdisHandle = CreateFile( @@ -651,4 +654,4 @@ DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved) break; } return TRUE; -} \ No newline at end of file +} -- cgit v1.2.3-59-g8ed1b