This commit is contained in:
Alexey Rybalchenko 2017-02-27 10:36:24 +01:00 committed by Mohammad Al-Turany
parent 7c1f7aa3f2
commit 07b760218f

View File

@ -84,6 +84,10 @@ inline int runStateMachine(TMQDevice& device, FairMQProgOptions& cfg)
if (!ldControlHandle) if (!ldControlHandle)
{ {
LOG(ERROR) << "Cannot open library: " << dlerror(); LOG(ERROR) << "Cannot open library: " << dlerror();
if (ldConfigHandle)
{
dlclose(ldConfigHandle);
}
return 1; return 1;
} }