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
2 changes: 2 additions & 0 deletions apps/webclient/packages/webclient-v2.1.2/src/webclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ int webclient_header_fields_add(struct webclient_session *session, const char *f
if (length < 0)
{
LOG_E("add fields header data failed, return length(%d) error.", length);
va_end(args);
return -WEBCLIENT_ERROR;
}
va_end(args);
Expand Down Expand Up @@ -1560,6 +1561,7 @@ int webclient_request_header_add(char **request_header, const char *fmt, ...)
if (length < 0)
{
LOG_E("add request header data failed, return length(%d) error.", length);
va_end(args);
return -WEBCLIENT_ERROR;
}
va_end(args);
Expand Down