diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-14 14:18:56 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-14 14:18:56 +0200 |
commit | b3cf66d4865c675f9cac1b02dd7b6b0d7e61eee7 (patch) | |
tree | d6a66bfa357ad37df7833b5208e3b9903438d7a3 /eval.c | |
parent | 8b0ed6abf6c363b5967029eed87937d39c018af5 (diff) |
eval: increase refcount when reading function context
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1317,7 +1317,7 @@ ut_execute_function(struct ut_state *state, uint32_t off) static struct json_object * ut_execute_this(struct ut_state *state, uint32_t off) { - return ut_getproto(ut_getscope(state, 0)); + return json_object_get(ut_getproto(ut_getscope(state, 0))); } static struct json_object * |