Dominique Pelle wrote:

> Valgrind memory checker detects the following memory leak in Vim-7.2.148:
> 
> ==26113== 36 bytes in 1 blocks are definitely lost in loss record 23 of 41
> ==26113==    at 0x402603E: malloc (vg_replace_malloc.c:207)
> ==26113==    by 0x8113A62: lalloc (misc2.c:866)
> ==26113==    by 0x8158375: vim_regcomp (regexp.c:1021)
> ==26113==    by 0x808CE03: ex_function (eval.c:19765)
> ==26113==    by 0x80A6807: do_one_cmd (ex_docmd.c:2622)
> ==26113==    by 0x80A4087: do_cmdline (ex_docmd.c:1096)
> ==26113==    by 0x8129E72: nv_colon (normal.c:5218)
> ==26113==    by 0x81234D6: normal_cmd (normal.c:1189)
> ==26113==    by 0x80E6655: main_loop (main.c:1180)
> ==26113==    by 0x80E61A2: main (main.c:939)
> 
> Leak happens whenever typing Ex command :fu[nction] /{pattern}
> which lists function names matching {pattern}.
> 
> For example, this will cause a memory leak:
> 
>   $ vim -u NONE
> 
>   :function! Foo
>   :endfunction
> 
>   :function /F
> 
> Attached patch fixes it.

Thanks again.

-- 
    [clop clop]
MORTICIAN:  Who's that then?
CUSTOMER:   I don't know.
MORTICIAN:  Must be a king.
CUSTOMER:   Why?
MORTICIAN:  He hasn't got shit all over him.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui