mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2835: Vim9: leaking memory in :cexpr
Problem: Vim9: leaking memory in :cexpr. Solution: Also free the command line copy.
This commit is contained in:
parent
5f7d4c049e
commit
dc3e2e65c9
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2835,
|
||||
/**/
|
||||
2834,
|
||||
/**/
|
||||
|
@ -9641,6 +9641,7 @@ delete_instr(isn_T *isn)
|
||||
break;
|
||||
|
||||
case ISN_CEXPR_CORE:
|
||||
vim_free(isn->isn_arg.cexpr.cexpr_ref->cer_cmdline);
|
||||
vim_free(isn->isn_arg.cexpr.cexpr_ref);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user