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