Skip to content

Commit cb28c55

Browse files
stokscedsiper
authored andcommitted
proxy: go: don't free plugin twice
`proxy_go_input_init` no longer frees memory that is also cleaned up on flb exit (e.g., a return from `flb_input_thread.c:flb_input_thread_instance_init:610` sees a double free before this change). Signed-off-by: Bradley Laney <[email protected]>
1 parent 866d00c commit cb28c55

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/proxy/go/go.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ int proxy_go_input_init(struct flb_plugin_proxy *proxy)
224224
if (ret <= 0) {
225225
flb_error("[go proxy]: plugin '%s' failed to initialize",
226226
plugin->name);
227-
flb_free(plugin);
228227
return -1;
229228
}
230229

0 commit comments

Comments
 (0)