commit | dc3e2e65c9dddcace4b24f0f364883d7ce448efb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 05 22:40:56 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 05 22:40:56 2021 +0200 |
tree | 4794eaf0f45bc11d65068d0333e7c50dad15ce07 | |
parent | 5f7d4c049e934dbc8d2c3f2720797c10ee3c55c2 [diff] [blame] |
patch 8.2.2835: Vim9: leaking memory in :cexpr Problem: Vim9: leaking memory in :cexpr. Solution: Also free the command line copy.
diff --git a/src/vim9compile.c b/src/vim9compile.c index 607f651..ead193f 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -9641,6 +9641,7 @@ break; case ISN_CEXPR_CORE: + vim_free(isn->isn_arg.cexpr.cexpr_ref->cer_cmdline); vim_free(isn->isn_arg.cexpr.cexpr_ref); break;