Fix leaky output variable
Merge pull request #2 from galniv/fix_output_leak

Fix leaky output variable