Fix possible pAdapterInfo leak
@@ -61,8 +61,11 @@ namespace PAL_NS_BEGIN {
pAdapterInfo = (IP_ADAPTER_INFO *)MALLOC(ulOutBufLen);
result = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen);
if (result == ERROR_NO_DATA)
+ {
+ FREE(pAdapterInfo);
goto _exit;
}
+ }
if (pAdapterInfo != NULL)
{
if (pAdapterInfo->AdapterName != NULL)
