From deb51c8605d7ceb59183532f7604aacbfbfa5779 Mon Sep 17 00:00:00 2001 From: avilevy Date: Tue, 21 Nov 2023 23:48:12 +0000 Subject: [PATCH] Addressed comments Signed-off-by: avilevy --- plugins/out_stackdriver/stackdriver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c index 188dcf8d49c..d8af6e721c1 100644 --- a/plugins/out_stackdriver/stackdriver.c +++ b/plugins/out_stackdriver/stackdriver.c @@ -2769,7 +2769,6 @@ static void cb_stackdriver_flush(struct flb_event_chunk *event_chunk, printf("%s", payload_buf); flb_sds_destroy(payload_buf); FLB_OUTPUT_RETURN(FLB_OK); - return; } /* Get upstream connection */ @@ -2784,7 +2783,7 @@ static void cb_stackdriver_flush(struct flb_event_chunk *event_chunk, update_retry_metric(ctx, event_chunk, ts, STACKDRIVER_NET_ERROR); #endif - flb_upstream_conn_release(u_conn); + flb_sds_destroy(payload_buf); FLB_OUTPUT_RETURN(FLB_RETRY); }