diff --git a/src/flb_http_client.c b/src/flb_http_client.c index 09398d88434..110cc69e7d8 100644 --- a/src/flb_http_client.c +++ b/src/flb_http_client.c @@ -1128,6 +1128,7 @@ int flb_http_do(struct flb_http_client *c, size_t *bytes) new_size = c->header_size + 2; tmp = flb_realloc(c->header_buf, new_size); if (!tmp) { + flb_errno(); return -1; } c->header_buf = tmp;