From 30e0babedb7b2fb3f255cba6ecc39c7eb20392e5 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Thu, 29 Jul 2021 21:44:25 +0900 Subject: [PATCH] plugin_proxy: do not flb_strdup name and description Almost output plugins's out->name/description are const char*. Then they are not freed on destroy callback. Signed-off-by: Takahiro Yamashita --- src/flb_plugin_proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flb_plugin_proxy.c b/src/flb_plugin_proxy.c index 1021163dde4..55e3dcb5f08 100644 --- a/src/flb_plugin_proxy.c +++ b/src/flb_plugin_proxy.c @@ -104,8 +104,8 @@ 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 = flb_strdup(def->name); - out->description = flb_strdup(def->description); + out->name = def->name; + out->description = def->description; mk_list_add(&out->_head, &config->out_plugins); /*