From 88a5f1e6acc9b23e275e51dee37d06ea1c4f0f08 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 14 Aug 2024 23:39:38 +0900 Subject: [PATCH] out_prometheus_exporter: remove dead code notified from coverity (CID 508348) (#9207) Signed-off-by: Hiroshi Hatake --- plugins/out_prometheus_exporter/prom.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/out_prometheus_exporter/prom.c b/plugins/out_prometheus_exporter/prom.c index 77f60a026ee..06aecf338bb 100644 --- a/plugins/out_prometheus_exporter/prom.c +++ b/plugins/out_prometheus_exporter/prom.c @@ -198,11 +198,6 @@ static void cb_prom_flush(struct flb_event_chunk *event_chunk, (char *) event_chunk->data, event_chunk->size, &off)) == ok) { - if (ret != 0) { - flb_sds_destroy(text); - FLB_OUTPUT_RETURN(FLB_ERROR); - } - /* append labels set by config */ append_labels(ctx, cmt);