Skip to content

Commit a528d5d

Browse files
committed
[HUST CSE] Fix: possible absence of va_end after va_start
1 parent e076a08 commit a528d5d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/webclient/packages/webclient-v2.1.2/src

apps/webclient/packages/webclient-v2.1.2/src/webclient.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ int webclient_header_fields_add(struct webclient_session *session, const char *f
525525
if (length < 0)
526526
{
527527
LOG_E("add fields header data failed, return length(%d) error.", length);
528+
va_end(args);
528529
return -WEBCLIENT_ERROR;
529530
}
530531
va_end(args);
@@ -1560,6 +1561,7 @@ int webclient_request_header_add(char **request_header, const char *fmt, ...)
15601561
if (length < 0)
15611562
{
15621563
LOG_E("add request header data failed, return length(%d) error.", length);
1564+
va_end(args);
15631565
return -WEBCLIENT_ERROR;
15641566
}
15651567
va_end(args);

0 commit comments

Comments
 (0)