diff options
author | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-01-25 19:29:08 +0300 |
---|---|---|
committer | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-01-25 19:29:08 +0300 |
commit | 3f53ce8abf1241e3e8f228b97701b834c148380a (patch) | |
tree | 2c8a02354eb56096fc92795e54d35ad699c7abd3 /src/libs/zbxembed | |
parent | e4110f264f99efb420aa619bab81fe18213ed2f0 (diff) |
........S. [ZBXNEXT-6360,ZBXNEXT-6366] actions memory leak fixed 2
Diffstat (limited to 'src/libs/zbxembed')
-rw-r--r-- | src/libs/zbxembed/embed.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libs/zbxembed/embed.c b/src/libs/zbxembed/embed.c index f6ba16158b2..7cbe7bc6fd4 100644 --- a/src/libs/zbxembed/embed.c +++ b/src/libs/zbxembed/embed.c @@ -509,9 +509,6 @@ int zbx_es_execute(zbx_es_t *es, const char *script, const char *code, int size, } else { - if (NULL == script_ret) - script_ret = &output; - if (SUCCEED != (ret = zbx_cesu8_to_utf8(duk_safe_to_string(es->env->ctx, -1), &output))) { *error = zbx_strdup(*error, "could not convert return value to utf8"); |