mirror of https://gitee.com/bigwinds/arangodb
fixed leaks
This commit is contained in:
parent
86f1a02e18
commit
aff1f6a6a0
|
@ -520,6 +520,10 @@ AqlValue Expression::executeSimpleExpression (AstNode const* node,
|
||||||
// no number found.
|
// no number found.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
indexResult.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
// fall-through to returning null
|
// fall-through to returning null
|
||||||
}
|
}
|
||||||
else if (result.isObject()) {
|
else if (result.isObject()) {
|
||||||
|
@ -541,6 +545,10 @@ AqlValue Expression::executeSimpleExpression (AstNode const* node,
|
||||||
result.destroy();
|
result.destroy();
|
||||||
return AqlValue(new Json(TRI_UNKNOWN_MEM_ZONE, j.steal()));
|
return AqlValue(new Json(TRI_UNKNOWN_MEM_ZONE, j.steal()));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
indexResult.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
// fall-through to returning null
|
// fall-through to returning null
|
||||||
}
|
}
|
||||||
result.destroy();
|
result.destroy();
|
||||||
|
|
Loading…
Reference in New Issue