Skip to content

Commit e76e220

Browse files
fix: ensure proper destruction of timestamp value in ArvanCloud CloudLogs plugin
Signed-off-by: Javad Nasrolahi <javadnasrolahi13@gmail.com>
1 parent 84a6b04 commit e76e220

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/out_arvancloud_cloudlogs/arvancloud_cloudlogs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ static int arvancloud_format(struct flb_config *config,
280280
time_formatted[s] = '\0';
281281
parse_success = FLB_TRUE;
282282
}
283+
}
283284

285+
if (timestamp_value) {
284286
flb_sds_destroy(timestamp_value);
285287
}
286288

0 commit comments

Comments
 (0)