diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-10 10:37:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-10 10:37:38 +0000 |
commit | dd297bc11d2793ba61638972778c57f2da14e8b5 (patch) | |
tree | fb7546a0a0274769ebc31001403383467c9d6e81 /src/structs.h | |
parent | dee78e1ce857985c06ff18e20daeadfe1622b8ae (diff) | |
download | vim-git-dd297bc11d2793ba61638972778c57f2da14e8b5.tar.gz |
patch 8.2.3771: Vim9: accessing freed memory when checking typev8.2.3771
Problem: Vim9: accessing freed memory when checking type.
Solution: Make a copy of a function type.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index be444e312..b8ffbe4a7 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1809,6 +1809,7 @@ struct svar_S { char_u *sv_name; // points into "sn_all_vars" di_key typval_T *sv_tv; // points into "sn_vars" or "sn_all_vars" di_tv type_T *sv_type; + int sv_type_allocated; // call free_type() for sv_type int sv_const; // 0, ASSIGN_CONST or ASSIGN_FINAL int sv_export; // "export let var = val" }; |