mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Fix missing calls to va_end in libunicode
This commit is contained in:
parent
af16390b85
commit
84d11c4f69
1 changed files with 2 additions and 0 deletions
|
@ -1542,11 +1542,13 @@ static int unicode_prop_ops(CharRange *cr, ...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
|
va_end(ap);
|
||||||
assert(stack_len == 1);
|
assert(stack_len == 1);
|
||||||
ret = cr_copy(cr, &stack[0]);
|
ret = cr_copy(cr, &stack[0]);
|
||||||
cr_free(&stack[0]);
|
cr_free(&stack[0]);
|
||||||
return ret;
|
return ret;
|
||||||
fail:
|
fail:
|
||||||
|
va_end(ap);
|
||||||
for(i = 0; i < stack_len; i++)
|
for(i = 0; i < stack_len; i++)
|
||||||
cr_free(&stack[i]);
|
cr_free(&stack[i]);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue