diff options
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 594c7ef5c..71e7f6224 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -111,8 +111,8 @@ lua_task_insert_result (lua_State *L) int i, top; if (task != NULL) { - metric_name = luaL_checkstring (L, 2); - symbol_name = luaL_checkstring (L, 3); + metric_name = memory_pool_strdup (task->task_pool, luaL_checkstring (L, 2)); + symbol_name = memory_pool_strdup (task->task_pool, luaL_checkstring (L, 3)); flag = luaL_checknumber (L, 4); top = lua_gettop (L); /* Get additional options */ |