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) if (Ret == CR_SUCCESS)
break; break;
if (Ret != CR_BUFFER_SMALL) if (Ret != CR_BUFFER_SMALL)
{
free(InterfaceList);
return FALSE; return FALSE;
}
} }
HANDLE NdisHandle = CreateFile( HANDLE NdisHandle = CreateFile(
@ -651,4 +654,4 @@ DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved)
break; break;
} }
return TRUE; return TRUE;
} }