Skip to content

Commit 584e422

Browse files
committed
engine: fix memory leaks with parse error handling in parse_string_map_to_list.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent 60db310 commit 584e422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flb_config_map.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static struct mk_list *parse_string_map_to_list(struct flb_config_map *map, char
9797

9898
if (ret == -1) {
9999
flb_error("[config map] error reading list of options");
100+
flb_slist_destroy(list);
100101
flb_free(list);
101102
return NULL;
102103
}

0 commit comments

Comments
 (0)