Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Fix a global leak
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Dec 5, 2011
1 parent 29a79ed commit d5ddf44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/yaml.js
@@ -1,4 +1,3 @@

// YAML - Core - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)

/**
Expand Down Expand Up @@ -67,7 +66,7 @@ var tokens = [

exports.tokenize = function (str) {
var token, captures, ignore, input,
indents = lastIndents = 0,
indents = 0, lastIndents = 0,
stack = [], indentAmount = -1
while (str.length) {
for (var i = 0, len = tokens.length; i < len; ++i)
Expand Down

0 comments on commit d5ddf44

Please sign in to comment.