Skip to content

Commit 6af60ec

Browse files
committed
out_calyptia: destroy http client before releasing conn
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 42e4cdd commit 6af60ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/out_calyptia/calyptia.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,12 +1058,12 @@ static void cb_calyptia_flush(struct flb_event_chunk *event_chunk,
10581058
}
10591059
#endif /* FLB_HAVE_CHUNK_TRACE */
10601060

1061-
flb_upstream_conn_release(u_conn);
1062-
10631061
if (c) {
10641062
flb_http_client_destroy(c);
10651063
}
10661064

1065+
flb_upstream_conn_release(u_conn);
1066+
10671067
FLB_OUTPUT_RETURN(ret);
10681068
}
10691069

0 commit comments

Comments
 (0)