|
From: | Thomas Dickey |
Subject: | Re: Could --disable-leaks be made a runtime switch? |
Date: | Tue, 12 Feb 2008 11:46:57 -0500 (EST) |
On Tue, 12 Feb 2008, Avery Pennarun wrote:
On 12/02/2008, Thomas Dickey <address@hidden> wrote:There are a few functions that can be called to free up the "permanent" memory, but that's part of the --disable-leaks feature.If those functions are in the library even without --disable-leaks,
they're not...
though, you could call them from your app on *any* ncurses binary distribution on any platform. That would be handy... and I seem to remember having done it before :)
I recall seeing SuSE's package for ncurses had turned on the feature - a while back.
valgrind is getting to be an indispensable tool for C/C++ developers, so libraries that don't make it easy to cooperate with valgrind are kind of a pain. (glibc and openssl are other examples.)
Have fun, Avery
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |