Skip to content

Commit 86be132

Browse files
author
Krish
committed
trivial bugfix
1 parent a7e70eb commit 86be132

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/byte_buf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ int aws_byte_buf_init_cache_and_update_cursors(struct aws_byte_buf *dest, struct
174174
while ((cursor_i = va_arg(args, struct aws_byte_cursor *)) != NULL) {
175175
AWS_ASSERT(aws_byte_cursor_is_valid(cursor_i));
176176
if (aws_add_size_checked(total_len, cursor_i->len, &total_len)) {
177+
va_end(args);
177178
return AWS_OP_ERR;
178179
}
179180
}

0 commit comments

Comments
 (0)