diff --git a/plugins/in_emitter/emitter.c b/plugins/in_emitter/emitter.c index 6d37219befa..064415e807a 100644 --- a/plugins/in_emitter/emitter.c +++ b/plugins/in_emitter/emitter.c @@ -312,6 +312,7 @@ static int cb_emitter_init(struct flb_input_instance *in, ret = flb_input_config_map_set(in, (void *) ctx); if (ret == -1) { + flb_free(ctx); return -1; }