Free interface list when aborting in installer

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-08-02 13:24:21 +02:00
parent 71afd84033
commit fb68232f16

View File

@ -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(