title: Memory leak in GLFW
body: <p>I have recently started to look into OpenGL for personal pet projects and am writing very simple test programs. However, even with the simplest program I can think of using GLFW, I appear to get a memory leak:</p>
  <pre><code>#include &lt;GLFW/glfw.h&gt;
  int main()
  {
    glfwInit();
    glfwTerminate();
  }
  </code></pre>
  <p>Using valgrind, I get the message:</p>
  <blockquote>
  <p>definitely lost: 72 bytes in 1 blocks</p>
  <p>indirectly lost: 0 bytes in 0 blocks</p>
  <p>possibly lost: 0 bytes in 0 blocks</p>
  <p>still reachable: 122,741 bytes in 446 blocks</p>
  </blockquote>
  <p>If I comment out the <code>glfwTerminate();</code> line, I get the same number of bytes lost, but several more bytes that are &quot;still reachable&quot; (which makes some sense to me - I haven't terminated GLFW, so whatever memory it's allocated is still there). It appears then, that the memory leak is in <code>glfwInit()</code>. Is this a bug in GLFW, or am I doing something terribly wrong even in this simple program?</p>
  <p>(Note: A 72-byte memory leak whenever <code>glfwInit</code> is called doesn't seem like a huge deal; I'd just prefer that number to be 0...)</p>