Bram Moolenaar <[email protected]> wrote:

>
> Dominique Pelle wrote:
>
> > Attached patch fixes a memory leak in regexp_nfa.c
> > detected by valgrind:
> >
> > ==3055== 128 bytes in 4 blocks are definitely lost in loss record 76 of 110
> > ==3055==    at 0x4C2B3F8: malloc (in
> > /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> > ==3055==    by 0x50E98C: lalloc (misc2.c:929)
> > ==3055==    by 0x572226: post2nfa (regexp_nfa.c:2161)
> > ==3055==    by 0x57697F: nfa_regcomp (regexp_nfa.c:3682)
> > ==3055==    by 0x576CF7: vim_regcomp (regexp.c:7827)
> [...]
>
> >
> > I can reproduce it with Vim-7.3.988 using...
> >    vim -N -c ':syntax on' vim/src/spell.c
> > ... and then exiting immediately with ":q!"
>
> Thanks!  Please keep an eye out for more leaks.  The more problems I
> find in the NFA code the  less I trust it...


I won't find time to test much before next Sunday as I am traveling.
I also want to sent updates of the French & Esperanto
translations early next week. Hopefully that's early enough
for the 7.4 release.

Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui