bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ncurses seems to be leaking memory?


From: Benno Schulenberg
Subject: Re: ncurses seems to be leaking memory?
Date: Tue, 16 Jun 2020 17:01:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

(Sorry, I did not see your replies.  I should have said:
please CC, not subscribed.)

Op 11-06-2020 om 13:32 schreef Benno Schulenberg:
> With that version there were no more invalid reads, but now
> valgrind reported possibly lost blocks.

I've reconfigured ncurses with --disable-leaks and recompiled,
and added a call to _nc_free_and_exit() at the end of nano,
but the compiler says it does not known the function: implicit
declaration.  Do I need to use still other configure flags?
I've used this:

  ./configure -C --enable-widec --with-shared --prefix=/usr/local 
--disable-leaks


By the way, while compiling ncurses, I saw this warning pass:

../test/picsmap.c: In function ‘lookup_rgb’:
../test/picsmap.c:965:11: warning: implicit declaration of function ‘strcasecmp’
[-Wimplicit-function-declaration]
      if (!strcasecmp(name, rgb_table[n].name)) {
           ^~~~~~~~~~


Also, after installation of ncurses into /usr/local, there
seems to be something wrong with one of the header files:

In file included from ./nano.h:89:
In file included from /usr/include/ncursesw/curses.h:2076:
/usr/local/include/ncursesw/unctrl.h:61:54: error: conflicting types for 
'unctrl'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
                                                     ^
/usr/local/include/ncursesw/unctrl.h:58:38: note: previous declaration is here
NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);

I work around that by editing that header file and changing the "#if 1"
on line 60 to "#if 0".


Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]