This commit is contained in:
Tiago Koji Castro Shibata 2020-08-08 10:49:49 -07:00
Родитель 29e7c24e59
Коммит 434329d186
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -143,7 +143,7 @@ void PopulateLearningModelDeviceList(CommandLineArgs& args, std::vector<Learning
}
}
currAdapter = nullptr;
free(driverDescription);
delete driverDescription;
}
if (spAdapter == nullptr)
@ -158,7 +158,7 @@ void PopulateLearningModelDeviceList(CommandLineArgs& args, std::vector<Learning
spAdapter->GetProperty(DXCoreAdapterProperty::DriverDescription, driverDescriptionSize,
driverDescription);
printf("Using adapter : %s\n", driverDescription);
free(driverDescription);
delete driverDescription;
IUnknown* pAdapter = spAdapter.get();
com_ptr<IDXGIAdapter> spDxgiAdapter;
D3D_FEATURE_LEVEL d3dFeatureLevel = D3D_FEATURE_LEVEL_1_0_CORE;

Просмотреть файл

@ -53,6 +53,6 @@ int main(int argc, char *argv[])
LearningModelSessionOptions sessionOptions;
PopulateSessionOptions(sessionOptions);
int returnCode = run(*commandLineArgs, profiler, deviceList, sessionOptions);
free(commandLineArgs);
delete commandLineArgs;
return returnCode;
}
}