Skip to content

Commit 9100098

Browse files
hiroyha1edsiper
authored andcommitted
engine: free after log worker thread has been stopped
Signed-off-by: Hiroyuki Hasebe <[email protected]>
1 parent 170955a commit 9100098

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/flb_config.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,14 @@ void flb_config_exit(struct flb_config *config)
390390
struct mk_list *head;
391391
struct flb_cf *cf;
392392

393-
if (config->log_file) {
394-
flb_free(config->log_file);
395-
}
396-
397393
if (config->log) {
398394
flb_log_destroy(config->log, config);
399395
}
400396

397+
if (config->log_file) {
398+
flb_free(config->log_file);
399+
}
400+
401401
if (config->parsers_file) {
402402
flb_free(config->parsers_file);
403403
}

0 commit comments

Comments
 (0)