Mercurial > vim
view ci/if_ver-cmd.vim @ 25788:b2c00659152a v8.2.3429
patch 8.2.3429: leaking memory when assigning to list or dict
Commit: https://github.com/vim/vim/commit/464393a6961d9b9de2bfe9c05f8e2ae5bdec0293
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 11 23:07:44 2021 +0200
patch 8.2.3429: leaking memory when assigning to list or dict
Problem: Leaking memory when assigning to list or dict.
Solution: Free the list or dict type before overwriting it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Sep 2021 23:15:02 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)