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.
#include <ncurses.h>
int main()
{
initscr();
WINDOW *win = newwin(0,0,10,10);
delwin(win);
endwin();
return 0;
}
==20986== Memcheck, a memory error detector
==20986== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==20986== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==20986== Command: ./a.out
==20986==
==20986==
==20986== HEAP SUMMARY:
==20986== in use at exit: 281,089 bytes in 193 blocks
==20986== total heap usage: 248 allocs, 55 frees, 353,425 bytes allocated
==20986==
==20986== LEAK SUMMARY:
==20986== definitely lost: 0 bytes in 0 blocks
==20986== indirectly lost: 0 bytes in 0 blocks
==20986== possibly lost: 0 bytes in 0 blocks
==20986== still reachable: 281,089 bytes in 193 blocks
==20986== suppressed: 0 bytes in 0 blocks
==20986== Rerun with --leak-check=full to see details of leaked memory
==20986==
==20986== For counts of detected and suppressed errors, rerun with: -v
==20986== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Thanks for your time.