]> granicus.if.org Git - vim/commit
patch 9.0.1079: leaking memory when defining a user command fails v9.0.1079
authorzeertzjq <zeertzjq@outlook.com>
Mon, 19 Dec 2022 16:49:27 +0000 (16:49 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 19 Dec 2022 16:49:27 +0000 (16:49 +0000)
commit33e543038b84af7557ab9ecff500fc4ab98dd2a3
treef5c5f4defc5032685baf35de460e93963f834b8d
parent07146ad1d33ba0d36b324873e5c461931e6b025e
patch 9.0.1079: leaking memory when defining a user command fails

Problem:    Leaking memory when defining a user command fails.
Solution:   Free "compl_arg" when needed. (closes #11726)
src/testdir/test_usercommands.vim
src/usercmd.c
src/version.c