Dominique Pelle wrote:
> Vim-7.2.315 is leaking memory whenever error E669 happens:
>
> ==4880== 18 bytes in 3 blocks are definitely lost in loss record 116 of 363
> ==4880== at 0x4024F3C: malloc (vg_replace_malloc.c:195)
> ==4880== by 0x810E187: lalloc (misc2.c:866)
> ==4880== by 0x810E091: alloc (misc2.c:765)
> ==4880== by 0x810E5FA: vim_strnsave (misc2.c:1195)
> ==4880== by 0x819F4BC: syn_check_group (syntax.c:8621)
> ==4880== by 0x819BD0A: do_highlight (syntax.c:6751)
> ==4880== by 0x80A7BD0: ex_highlight (ex_docmd.c:6233)
> ==4880== by 0x80A2098: do_one_cmd (ex_docmd.c:2629)
> ==4880== by 0x809F971: do_cmdline (ex_docmd.c:1098)
> ==4880== by 0x80883B8: ex_execute (eval.c:19592)
> ==4880== by 0x80A2098: do_one_cmd (ex_docmd.c:2629)
> ==4880== by 0x809F971: do_cmdline (ex_docmd.c:1098)
> ==4880== by 0x8123C34: nv_colon (normal.c:5224)
> ==4880== by 0x811D631: normal_cmd (normal.c:1188)
> ==4880== by 0x80E12BD: main_loop (main.c:1204)
> ==4880== by 0x80E0DB4: main (main.c:948)
>
> Leak happens when trying to add a highlight group with
> non-printable characters. Following command for example
> will cause a leak:
>
> :exe "hi \<c-v>\<c-a> term=bold"
>
> Attached patch fixes it.
Thanks!
--
The technology involved in making anything invisible is so infinitely
complex that nine hundred and ninety-nine billion, nine hundred and
ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
and ninety-nine times out of a trillion it is much simpler and more
effective just to take the thing away and do without it.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// 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