mirror of https://github.com/Icinga/icinga2.git
Fix memory leaks in the config parser.
This commit is contained in:
parent
2ed8f1aaa7
commit
9d0fee73a3
File diff suppressed because it is too large
Load Diff
|
@ -571,34 +571,58 @@ constexpression: T_STRING
|
|||
$$ = new Value((String)*$1 + (String)*$3);
|
||||
else
|
||||
$$ = new Value((double)*$1 + (double)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression '-' constexpression
|
||||
{
|
||||
$$ = new Value((double)*$1 - (double)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression '*' constexpression
|
||||
{
|
||||
$$ = new Value((double)*$1 * (double)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression '/' constexpression
|
||||
{
|
||||
$$ = new Value((double)*$1 / (double)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression '&' constexpression
|
||||
{
|
||||
$$ = new Value((long)*$1 & (long)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression '|' constexpression
|
||||
{
|
||||
$$ = new Value((long)*$1 | (long)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression T_SHIFT_LEFT constexpression
|
||||
{
|
||||
$$ = new Value((long)*$1 << (long)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| constexpression T_SHIFT_RIGHT constexpression
|
||||
{
|
||||
$$ = new Value((long)*$1 >> (long)*$3);
|
||||
|
||||
delete $1;
|
||||
delete $3;
|
||||
}
|
||||
| '(' constexpression ')'
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue