0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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:
Bram Moolenaar
2021-05-05 22:40:56 +02:00
parent 5f7d4c049e
commit dc3e2e65c9
2 changed files with 3 additions and 0 deletions

View File

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