Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions plugins/out_opensearch/opensearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,10 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
ret = flb_http_do(c, &b_sent);
if (ret != 0) {
flb_plg_warn(ctx->ins, "http_do=%i URI=%s", ret, ctx->uri);
if (signature) {
flb_sds_destroy(signature);
signature = NULL;
}
goto retry;
}
else {
Expand All @@ -988,6 +992,10 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
flb_plg_error(ctx->ins, "HTTP status=%i URI=%s",
c->resp.status, ctx->uri);
}
if (signature) {
flb_sds_destroy(signature);
signature = NULL;
}
goto retry;
}

Expand Down Expand Up @@ -1021,6 +1029,10 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
fflush(stderr);
}
}
if (signature) {
flb_sds_destroy(signature);
signature = NULL;
}
goto retry;
}
else {
Expand All @@ -1029,6 +1041,10 @@ static void cb_opensearch_flush(struct flb_event_chunk *event_chunk,
}
}
else {
if (signature) {
flb_sds_destroy(signature);
signature = NULL;
}
goto retry;
}
}
Expand Down
Loading