From d03b03d11c866d67bb944911d521169fa4048f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bethmont?= Date: Tue, 29 Nov 2011 10:42:51 +0800 Subject: [PATCH] Fixed a memory leak. --- imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.js b/imap.js index 23256b0..cd7cbae 100644 --- a/imap.js +++ b/imap.js @@ -1487,7 +1487,7 @@ function extend() { // if last one is own, then all properties are own. var last_key; - for (key in obj) + for (var key in obj) last_key = key; return typeof last_key === "undefined" || hasOwnProperty.call(obj, last_key);