[patch] free memory for :lmap :xmap :menutranslate when built with -DEXITFREE

1 view
Skip to first unread message

Dominique Pellé

unread,
Nov 8, 2009, 3:57:21 AM11/8/09
to vim_dev
Hi

I built Vim-7.2.284 with -DEXITFREE and I see that memory allocated from
":lmap", ":xmap" and ":menutranslate" is not freed before exiting.

Attached patch fixes it.

It's not severe since it's not a real leak and Vim is no built with -DEXITFREE
by default. But fixing reduces false alarms when searching for real memory
leaks.

Cheers
-- Dominique

free-mem-lmap-EXITFREE-misc2.c-7.2.284.patch

Bram Moolenaar

unread,
Nov 8, 2009, 7:19:46 AM11/8/09
to Dominique Pellé, vim_dev

Dominique Pelle wrote:

Thanks again.

--
Living on Earth includes an annual free trip around the Sun.

/// Bram Moolenaar -- Br...@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 ///

Reply all
Reply to author
Forward
0 new messages