From 4b6cfc7a4cc2c7d67452b33e81b360e4107ce5ac Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 3 Oct 2023 15:58:13 +0900 Subject: [PATCH] plugin_proxy: Plug an occurrence of garbage character on hot-reloading Signed-off-by: Hiroshi Hatake --- src/flb_plugin_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flb_plugin_proxy.c b/src/flb_plugin_proxy.c index 57c0c5afa5c..5acba5e7078 100644 --- a/src/flb_plugin_proxy.c +++ b/src/flb_plugin_proxy.c @@ -365,7 +365,7 @@ static int flb_proxy_register_output(struct flb_plugin_proxy *proxy, out->type = FLB_OUTPUT_PLUGIN_PROXY; out->proxy = proxy; out->flags = def->flags; - out->name = def->name; + out->name = flb_strdup(def->name); out->description = def->description; mk_list_add(&out->_head, &config->out_plugins);