From 3309d8d1b186f1448cf219b3a3efbecbc30c50f2 Mon Sep 17 00:00:00 2001 From: Michel Date: Sat, 12 Apr 2014 14:13:48 -0700 Subject: [PATCH] Fix leak -- Fix #12 --- lib/term.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/term.js b/lib/term.js index a21c236..90d57be 100644 --- a/lib/term.js +++ b/lib/term.js @@ -897,8 +897,7 @@ Term.prototype.toString = function() { // Return {isJSON: false, value: // Convert as many fields in JSON as possible, Term.prototype._exprJSON = function(value, nestingLevel, _r) { - var result; - var isJSON; + var result, isJSON, previousKeys; if (nestingLevel == null) nestingLevel = this._r.nestingLevel; if (nestingLevel < 0) throw new Error.ReqlDriverError("Nesting depth limit exceeded.\nYou probably have a circular reference somewhere") @@ -1016,6 +1015,7 @@ Term.prototype._translateArgs = { noReply: "noreply", } Term.prototype._makeOptArgs = function(r, options) { + var keyServer; var optargs = []; for(var key in options) { if (options[key] !== undefined) {