Skip to content

Commit d3d747d

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flb_custom.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ void flb_custom_instance_destroy(struct flb_custom_instance *ins)
325325
if (ins->config_map) {
326326
flb_config_map_destroy(ins->config_map);
327327
}
328+
/* destroy net config map */
329+
if (ins->net_config_map) {
330+
flb_config_map_destroy(ins->net_config_map);
331+
}
328332

329333
/* release properties */
330334
flb_kv_release(&ins->properties);

0 commit comments

Comments
 (0)