]> granicus.if.org Git - nethack/commit
curses: change from malloc() to nethack's alloc()
authorPatR <rankin@nethack.org>
Fri, 8 Feb 2019 00:48:37 +0000 (16:48 -0800)
committerPatR <rankin@nethack.org>
Fri, 8 Feb 2019 00:48:37 +0000 (16:48 -0800)
commit19d737951e62b0abab366a67ac46a6f9fad310e3
tree441bab2268913f9f909578cbac4d925a18c9492e
parentb1de94f922965efa22e3b85a0c29e36e8c168a32
curses: change from malloc() to nethack's alloc()

There was no provision for malloc() potentially returning Null and it
wasn't integrated with nethack's MONITOR_HEAP.  'heaputil' shows that
the curses interface is leaking like a sieve.  If some things are
actually being allocated separately and then freed from within curses,
those need to be thoroughly documented and maybe switched back to
malloc().
doc/fixes36.2
win/curses/cursdial.c
win/curses/cursmesg.c
win/curses/cursmisc.c
win/curses/curswins.c