Lech Lorens wrote: > On 24-Aug-2010 Lech Lorens <lech.lor...@gmail.com> wrote: > > On 24-Aug-2010 Christian Brabandt <cbli...@256bit.org> wrote: > > > Hi, > > > I have been playing with the undotree() function lately. Unfortunately, > > > it didn't take long, until it crashed :( > > > > > > Here is a way to reproduce it: > > > > > > chrisbra t41:~/vim [1016]% vim -u NONE -N -c ':echo undotree().entries' > > > Vim: Caught deadly signal ABRT > > > > > > Vim: Finished. > > > zsh: abort vim -u NONE -N > > > > This happens due to a double free(). The attached patch fixes the > > problem. I'll prepare a test for this. > > I ran the tests with Valgrind after applying the previous patch. > Everything seems to be in order. > > The attached patch contains the modification to eval.c, updated test61 > and a modification to testdir/Makefile which makes it remove the output > generated by Valgrind when "make clean" is performed.
Thanks Lech! -- The difference between theory and practice, is that in theory, there is no difference between theory and practice. /// Bram Moolenaar -- b...@moolenaar.net -- 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. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php