diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 21:45:35 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 21:45:35 +0200 |
commit | 890110a8072766d1e659f2c034d64753b0f1e66d (patch) | |
tree | 91ef94bb0bb8566651f0687e50aca476359a4f79 | |
parent | 40d4b5ca27e73c697363b805d0e1fde85276b46e (diff) |
eval: fix double free of env values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1583,7 +1583,7 @@ ut_run(struct ut_state *state, struct json_object *env, struct json_object *modu if (env) { json_object_object_foreach(env, key, val) - ut_register_variable(scope, key, val); + ut_register_variable(scope, key, json_object_get(val)); } ut_globals_init(state, scope); |