diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-02 13:24:21 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-02 13:24:21 +0200 |
commit | fb68232f16df5e20132f911d2e1edf64f7145bcb (patch) | |
tree | b5cd197a5197f4e88ebcabb49438c9adf6637576 | |
parent | Document how to get file handle (diff) | |
download | wintun-fb68232f16df5e20132f911d2e1edf64f7145bcb.tar.xz wintun-fb68232f16df5e20132f911d2e1edf64f7145bcb.zip |
Free interface list when aborting in installer
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | installer/installation.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 +} |