title: Understanding Valgrind o/p
body: <p>I am running memcheck using valgrind. 
  the o/p is </p>
  
  <pre><code>==3091== 204 bytes in 17 blocks are definitely lost in loss record 1,406 of 2,299
  </code></pre>
  
  <p>what does it mean ?</p>
  
  <p>What I guess there is <code>204 bytes memory loss</code> </p>
  
  <p>but what it meant by </p>
  
  <pre><code>17 blocks ?
  </code></pre>
  
  <p>and how to know how many time this memory leak happened by same function ?</p>
  
  <p>Complete stack trace of the valgrind </p>
  
  <pre><code>==3091== 204 bytes in 17 blocks are definitely lost in loss record 1,406 of 2,299
  ==3091==    at 0x4A05E1C: malloc (vg_replace_malloc.c:195)
  ==3091==    by 0x4CA304: fs_get (fs_unix.c:38)
  ==3091==    by 0x4E58C1: cpystr (misc.c:74)
  ==3091==    by 0x4D130F: ip_nametoaddr (ip_unix.c:178)
  ==3091==    by 0x4D15F4: tcp_open (tcp_unix.c:192)
  ==3091==    by 0x4D41A5: cc_connect_http_proxy (proxy.c:164)
  ==3091==    by 0x4D4B0C: cc_connect (proxy.c:571)
  ==3091==    by 0x4D506D: ssl_open (osdep.c:353)
  ==3091==    by 0x4E56C3: net_open_work (mail.c:6240)
  ==3091==    by 0x4E558A: net_open (mail.c:6196)
  ==3091==    by 0x4FBA04: imap_open (imap4r1.c:841)
  ==3091==    by 0x4D9CB1: mail_open_work (mail.c:1355)
  </code></pre>