Skip to content

Commit 03fefc8

Browse files
committed
go: plugin_proxy: error on plugin initialization errors
1 parent 0ae7e15 commit 03fefc8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/flb_input_thread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,11 @@ int flb_input_thread_instance_init(struct flb_config *config, struct flb_input_i
620620
ret = input_thread_instance_get_status(ins);
621621
if (ret == -1) {
622622
flb_plg_error(ins, "unexpected error loading plugin instance");
623+
return -1;
623624
}
624625
else if (ret == FLB_FALSE) {
625626
flb_plg_error(ins, "could not initialize threaded plugin instance");
627+
return -1;
626628
}
627629
else if (ret == FLB_TRUE) {
628630
flb_plg_info(ins, "thread instance initialized");

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)