Skip to content

Commit 739e32d

Browse files
committed
internal: storage: fix memory leak in flb_config_exit
Add missing cleanup for storage_type field to prevent memory leaks detected in storage_inherit tests.
1 parent 077c189 commit 739e32d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flb_config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ void flb_config_exit(struct flb_config *config)
529529
flb_free(config->dns_resolver);
530530
}
531531

532+
if (config->storage_type) {
533+
flb_free(config->storage_type);
534+
}
532535
if (config->storage_path) {
533536
flb_free(config->storage_path);
534537
}

0 commit comments

Comments
 (0)