mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +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));
|
||||
return new FutureExpression(ftr);
|
||||
} else {
|
||||
Expression *expr;
|
||||
|
||||
try {
|
||||
return ctx->Compile();
|
||||
expr = ctx->Compile();
|
||||
} catch (...) {
|
||||
delete ctx;
|
||||
throw;
|
||||
}
|
||||
|
||||
delete ctx;
|
||||
return expr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user