esp_http_client: fix few coverity warnings

This commit is contained in:
Mahavir Jain 2022-10-10 15:10:55 +05:30
parent 40b48a5393
commit a7b42be1bd
No known key found for this signature in database
GPG Key ID: 99324EF4A00734E0

View File

@ -159,9 +159,6 @@ int http_header_set_format(http_header_handle_t header, const char *key, const c
len = vasprintf(&buf, format, argptr);
va_end(argptr);
ESP_RETURN_ON_FALSE(buf, 0, TAG, "Memory exhausted");
if (buf == NULL) {
return 0;
}
http_header_set(header, key, buf);
free(buf);
return len;