diff options
author | James McCoy <jamessan@jamessan.com> | 2022-05-19 22:12:48 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2022-05-20 08:15:07 -0400 |
commit | f15122e8a2938b0a440aa3d834f6648537f1951f (patch) | |
tree | 1ef62affa04693dc973814026e378272740e7dd7 /src/nvim/api/private/helpers.c | |
parent | 6954c0ba0dd6dfeed7067c7a06c163bd958e3d10 (diff) | |
download | rneovim-f15122e8a2938b0a440aa3d834f6648537f1951f.tar.gz rneovim-f15122e8a2938b0a440aa3d834f6648537f1951f.tar.bz2 rneovim-f15122e8a2938b0a440aa3d834f6648537f1951f.zip |
fix(cid/351940): free compl_arg in create_user_commands()'s error path exit
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 7bd68f277b..5d4b84482b 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -1624,6 +1624,7 @@ void create_user_command(String name, Object command, Dict(user_command) *opts, err: NLUA_CLEAR_REF(luaref); NLUA_CLEAR_REF(compl_luaref); + xfree(compl_arg); } int find_sid(uint64_t channel_id) |