Skip to content

Commit

Permalink
in_splunk: Fix an invalid free
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
  • Loading branch information
cosmo0920 committed Jun 5, 2024
1 parent 968725c commit a77b7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_splunk/splunk_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void delete_hec_tokens(struct flb_splunk *ctx)
splunk_token = mk_list_entry(head, struct flb_splunk_tokens, _head);
flb_sds_destroy(splunk_token->header);
mk_list_del(&splunk_token->_head);
flb_free(&splunk_token);
flb_free(splunk_token);
}
}

Expand Down

0 comments on commit a77b7a2

Please sign in to comment.