Skip to content

Commit a3959d3

Browse files
cosmo0920edsiper
authored andcommitted
in_forward: Add a missing releasing users related contexts
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 67ae3b0 commit a3959d3

File tree

1 file changed

+1
-0
lines changed
  • plugins/in_forward

1 file changed

+1
-0
lines changed

plugins/in_forward/fw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ static int in_fw_init(struct flb_input_instance *ins,
338338
ctx->shared_key == NULL &&
339339
ctx->empty_shared_key == FLB_FALSE) {
340340
flb_plg_error(ctx->ins, "security.users is set but no shared_key or empty_shared_key");
341+
delete_users(ctx);
341342
fw_config_destroy(ctx);
342343
return -1;
343344
}

0 commit comments

Comments
 (0)