Skip to content

Commit

Permalink
in_forward: fixed two leaks
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Aug 13, 2024
1 parent 13db2ee commit b54595b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/in_forward/fw_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ static int append_log(struct flb_input_instance *ins, struct fw_conn *conn,
flb_input_metrics_append(conn->in,
out_tag, flb_sds_len(out_tag),
cmt);
cmt_decode_msgpack_destroy(cmt);
}
else if (event_type == FLB_EVENT_TYPE_TRACES) {
off = 0;
Expand All @@ -1133,6 +1134,8 @@ static int append_log(struct flb_input_instance *ins, struct fw_conn *conn,
flb_input_trace_append(ins,
out_tag, flb_sds_len(out_tag),
ctr);

ctr_decode_msgpack_destroy(ctr);
}

return 0;
Expand Down

0 comments on commit b54595b

Please sign in to comment.