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

Memory leaks found by valgrind and zsh tests



Here are leaks found via valgrind and running zsh against our tests.  For
some reason the completion tests hung, but the other tests seemed to mostly
work.    Latest version from CVS. 

-FR.

 28 bytes in 4 blocks are definitely lost in loss record 2 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  bin_typeset (builtin.c:2258)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)
    by  execpline2 (exec.c:1276)
    by  execpline (exec.c:1066)
    by  execlist (exec.c:872)
    by  execode (exec.c:773)

 7 bytes in 1 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  addvars (exec.c:1627)
    by  execsimple (exec.c:799)
    by  execlist (exec.c:852)
    by  execode (exec.c:773)
    by  bin_eval (builtin.c:4158)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)

 1157 bytes in 28 blocks are definitely lost in loss record 11 of 13
    at malloc (vg_replace_malloc.c:153)
    by 0x40269EFE: (within /lib/libtermcap.so.2.0.8)
    by 0x4026AE47: tgetstr (in /lib/libtermcap.so.2.0.8)
    by  init_term (init.c:561)
    by  promptexpand (prompt.c:162)
    by  paramsubst (subst.c:2316)
    by  stringsubst (subst.c:137)
    by  prefork (subst.c:74)
    by  execcmd (exec.c:1865)
    by  execpline2 (exec.c:1276)

 5 bytes in 1 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  addvars (exec.c:1627)
    by  execsimple (exec.c:799)
    by  execlist (exec.c:852)
    by  execode (exec.c:773)
    by  bin_eval (builtin.c:4158)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)

 2434 bytes in 1 blocks are possibly lost in loss record 12 of 14
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  mkenvstr (params.c:3412)
    by  addenv (params.c:3375)
    by  restore_params (exec.c:2590)
    by  execcmd (exec.c:2443)
    by  execpline2 (exec.c:1276)
    by  execpline (exec.c:1066)
    by  execlist (exec.c:872)
    by  execode (exec.c:773)

 24 bytes in 6 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  mkarray (utils.c:2191)
    by  arrvarsetfn (params.c:2580)
    by  stdunsetfn (params.c:2308)
    by  unsetparam_pm (params.c:2230)
    by  unsetparam (params.c:2210)
    by  deleteparamdef (module.c:1929)
    by  deleteparamdefs (module.c:1938)
    by 0x41C3A74A: cleanup_ (example.c:219)

 68 bytes in 1 blocks are definitely lost in loss record 2 of 14
    at  malloc (vg_replace_malloc.c:153)
    by  zshcalloc (mem.c:508)
    by  newhashtable (hashtable.c:99)
    by 0x41C8D016: ???
    by 0x41C8D6AA: ???
    by  dyn_boot_module (module.c:625)
    by  boot_module (module.c:678)
    by  load_module (module.c:784)
    by  require_module (module.c:889)
    by  bin_zmodload_load (module.c:1615)



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



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