title: node.js readFile memory leak
body: <p>Im using node.js to read an image every second. The idea is to later push it to web browsers, making it a simple stream. The code looks as following:</p>
  
  <pre><code>var fs      = require("fs");
  var intervalTimerObj;
  
  function startStream() {
      if(!intervalTimerObj) {
          intervalTimerObj = setInterval( updateStream  , 1000);
      }
  }
  
  function updateStream(){
      fs.readFile( __dirname + "/pic.jpg", function(err, image) {
  
      });
  }
  
  startStream();
  </code></pre>
  
  <p>When running the code above I seem to get a memory leak as my memory quickly fills up.
  The larger the image file i load, the quicker it fills up. </p>
  
  <p>What am I doing wrong? Is there some way to 'release' the image variable? I've tried nulling it.</p>