Skip to content

Commit

Permalink
plugin_proxy: do not flb_strdup name and description
Browse files Browse the repository at this point in the history
Almost output plugins's out->name/description are const char*.
Then they are not freed on destroy callback.

Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Jul 29, 2021
1 parent b7335ab commit 30e0bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 30e0bab

Please sign in to comment.