Skip to content

Commit bb4611b

Browse files
pwhelanedsiper
authored andcommitted
reload: fix memory leak with net_config_map in custom properties check.
Signed-off-by: Phillip Adair Stewart Whelan <[email protected]>
1 parent d3d747d commit bb4611b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flb_reload.c

+6
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ static int flb_custom_propery_check_all(struct flb_config *config)
190190
flb_config_map_destroy(ins->config_map);
191191
ins->config_map = NULL;
192192
}
193+
194+
/* destroy net config map (will be recreated at flb_start) */
195+
if (ins->net_config_map) {
196+
flb_config_map_destroy(ins->net_config_map);
197+
ins->net_config_map = NULL;
198+
}
193199
}
194200

195201
return 0;

0 commit comments

Comments
 (0)