Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Memory leaks found by valgrind



I ran valgrind with a recent version of zsh from cvs (about a week old, so the
line numbers don't much the code today).  And got the following memory leaks. 
The shell ran for a few days, though it didn't get heavy use.  It would be
great if other folks could run with valgrind, purify, or any other code
scouring tools.


659 bytes in 4 blocks are definitely lost in loss record 8 of 13
   at 0x40165A60: malloc (vg_clientfuncs.c:100)
   by 0x8086055: zalloc (mem.c:490)
   by 0x80E2122: calclist (compresult.c:1583)
   by 0x80E8750: complistmatches (complist.c:1607)


(This one seems to have come from children processes.)
464 bytes in 4 blocks are definitely lost in loss record 5 of 11
   at 0x40165A60: malloc (vg_clientfuncs.c:100)
   by 0x80861D5: zcalloc (mem.c:508)
   by 0x807983C: addproc (jobs.c:832)
   by 0x805D6BE: execpline (exec.c:1057)

-FR.

ps valgrind can be found at http://developer.kde.org/~sewardj/ useful for linux
i86 folkds.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Messages sorted by: Reverse Date, Date, Thread, Author