fix(cid/351940): free compl_arg in create_user_commands()'s error path exit

This commit is contained in:
James McCoy 2022-05-19 22:12:48 -04:00
parent 6954c0ba0d
commit f15122e8a2
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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)