NCurses memory allocation valgrind message
<p>I've been teaching myself NCurses lately and I decided to test my code in valgrind to check for any memory leaks. This small amount of code gives the same error result as my program and I would like to know if someone knows what is wrong with it or can direct me to the answer.</p>

<pre><code>#include &lt;ncurses.h&gt;
int main()
{
    initscr();
    WINDOW *win = newwin(0,0,10,10);
    delwin(win);
    endwin();
    return 0;
}
</code></pre>

<p>==20986== Memcheck, a memory error detector<br>
==20986== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.<br>
==20986== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info<br>
==20986== Command: ./a.out<br>
==20986== <br>
==20986== <br>
==20986== HEAP SUMMARY:<br>
==20986==     in use at exit: 281,089 bytes in 193 blocks<br>
==20986==   total heap usage: 248 allocs, 55 frees, 353,425 bytes allocated<br>
==20986== <br>
==20986== LEAK SUMMARY:<br>
==20986==    definitely lost: 0 bytes in 0 blocks<br>
==20986==    indirectly lost: 0 bytes in 0 blocks<br>
==20986==      possibly lost: 0 bytes in 0 blocks<br>
==20986==    still reachable: 281,089 bytes in 193 blocks<br>
==20986==         suppressed: 0 bytes in 0 blocks<br>
==20986== Rerun with --leak-check=full to see details of leaked memory<br>
==20986== <br>
==20986== For counts of detected and suppressed errors, rerun with: -v<br>
==20986== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)<br></p>

<p>Thanks for your time.</p>