Mercurial > vim
view ci/if_ver-1.vim @ 25194:6c75baaa54ee v8.2.3133
patch 8.2.3133: Vim9: memory leak when add() fails
Commit: https://github.com/vim/vim/commit/90fba5627b361dbc970b3afc2eebf7411c49a0cc
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 9 19:17:55 2021 +0200
patch 8.2.3133: Vim9: memory leak when add() fails
Problem: Vim9: memory leak when add() fails.
Solution: Allocate listitem_T after type check.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Jul 2021 19:30:06 +0200 |
parents | 0878f0fd349b |
children |
line wrap: on
line source
" Print all interface versions for Ubuntu. Part 1. if 1 execute 'source' expand('<sfile>:h') .. '/if_ver-cmd.vim' echo "*** Interface versions ***\n" echo 'Lua:' PrintVer lua print(vim.lua_version, jit and "(LuaJIT)" or "") echo 'MzScheme:' PrintVer mzscheme (display (version)) echo 'Perl:' PrintVer perl print $^V echo 'Ruby:' PrintVer ruby print RUBY_VERSION echo 'Tcl:' PrintVer tcl puts [info patchlevel] echo 'Python 2:' PrintVer python print sys.version endif