Skip to content

Commit

Permalink
engine: free after log worker thread has been stopped
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroyuki Hasebe <[email protected]>
  • Loading branch information
hiroyha1 authored and edsiper committed May 22, 2024
1 parent 170955a commit 9100098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/flb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,14 @@ void flb_config_exit(struct flb_config *config)
struct mk_list *head;
struct flb_cf *cf;

if (config->log_file) {
flb_free(config->log_file);
}

if (config->log) {
flb_log_destroy(config->log, config);
}

if (config->log_file) {
flb_free(config->log_file);
}

if (config->parsers_file) {
flb_free(config->parsers_file);
}
Expand Down

0 comments on commit 9100098

Please sign in to comment.