diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-16 22:03:31 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-16 22:03:31 +0300 |
commit | 2a6423eba732b005e277bac393f2246308dcc378 (patch) | |
tree | 22862021e1ef3babf996b8493b235aa2f12f0f65 /src/nvim/api/private/helpers.h | |
parent | 3660535f0229afc4ce3391d94794253f685ec400 (diff) | |
download | rneovim-2a6423eba732b005e277bac393f2246308dcc378.tar.gz rneovim-2a6423eba732b005e277bac393f2246308dcc378.tar.bz2 rneovim-2a6423eba732b005e277bac393f2246308dcc378.zip |
api helpers: Save/restore more values in try_enter/try_leave
This fixes memory leak reported by ASAN. This also somehow fixes test40, though
I have no idea why except that that test yields memory leak report.
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r-- | src/nvim/api/private/helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 112d785bfd..0b2cf883a6 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -6,6 +6,7 @@ #include "nvim/api/private/defs.h" #include "nvim/vim.h" #include "nvim/memory.h" +#include "nvim/ex_eval.h" #include "nvim/lib/kvec.h" #define OBJECT_OBJ(o) o @@ -90,6 +91,8 @@ typedef struct { int trylevel; int got_int; int did_throw; + int need_rethrow; + except_T *current_exception; struct msglist *private_msg_list; const struct msglist *const *msg_list; } TryState; |