1
0
Fork 0

Fix free crash.

This commit is contained in:
Max Neunhoeffer 2014-07-30 22:54:25 +02:00
parent e777cb71b1
commit 8613450e5b
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ namespace triagens {
: _outer(nullptr), _nrvars(nrvars) {
if (nrvars > 0) {
_vars = new AqlValue* [nrvars];
for (int i = 0; i < nrvars; i++) {
_vars[i] = nullptr;
}
}
else {
_vars = nullptr;