1
0
Fork 0

fixed leaks

This commit is contained in:
Jan Steemann 2015-06-18 19:30:29 +02:00
parent 86f1a02e18
commit aff1f6a6a0
1 changed files with 8 additions and 0 deletions

View File

@ -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();