mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
91b8a9fc4e
commit
0884265180
@ -207,12 +207,17 @@ Expression *ConfigCompiler::CompileStream(const String& path, std::istream *stre
|
|||||||
Utility::QueueAsyncCallback(boost::bind(&ConfigCompiler::CompileHelper, ctx));
|
Utility::QueueAsyncCallback(boost::bind(&ConfigCompiler::CompileHelper, ctx));
|
||||||
return new FutureExpression(ftr);
|
return new FutureExpression(ftr);
|
||||||
} else {
|
} else {
|
||||||
|
Expression *expr;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return ctx->Compile();
|
expr = ctx->Compile();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
delete ctx;
|
delete ctx;
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete ctx;
|
||||||
|
return expr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user