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 +}