aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_task.c3
-rw-r--r--src/protocol.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 844229f9d..082b1690f 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -122,9 +122,6 @@ lua_task_insert_result (lua_State *L)
}
insert_result (task, metric_name, symbol_name, flag, params);
- if (params != NULL) {
- memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_list_free, params);
- }
}
return 1;
}
diff --git a/src/protocol.c b/src/protocol.c
index cd5f32424..d6fe07cca 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -454,7 +454,9 @@ metric_symbols_callback (gpointer key, gpointer value, void *user_data)
outbuf[OUTBUFSIZ - 1] = '\n';
}
}
- r = snprintf (outbuf, OUTBUFSIZ, "Symbol: %s" CRLF, (char *)key);
+ else {
+ r = snprintf (outbuf, OUTBUFSIZ, "Symbol: %s" CRLF, (char *)key);
+ }
cd->log_offset += snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset,
"%s,", (char *)key);