Skip to content

Commit

Permalink
config: release kernel info using flb_kernel_destroy
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Sep 19, 2023
1 parent d792434 commit e5f12f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ void flb_config_exit(struct flb_config *config)
}

if (config->kernel) {
flb_free(config->kernel->s_version.data);
flb_free(config->kernel);
flb_kernel_destroy(config->kernel);
}

/* release resources */
Expand Down

0 comments on commit e5f12f9

Please sign in to comment.