Skip to content

Commit 84d11c4

Browse files
ABBAPOHsaghul
authored andcommitted
Fix missing calls to va_end in libunicode
1 parent af16390 commit 84d11c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libunicode.c

+2
Original file line numberDiff line numberDiff line change
@@ -1542,11 +1542,13 @@ static int unicode_prop_ops(CharRange *cr, ...)
15421542
}
15431543
}
15441544
done:
1545+
va_end(ap);
15451546
assert(stack_len == 1);
15461547
ret = cr_copy(cr, &stack[0]);
15471548
cr_free(&stack[0]);
15481549
return ret;
15491550
fail:
1551+
va_end(ap);
15501552
for(i = 0; i < stack_len; i++)
15511553
cr_free(&stack[i]);
15521554
return -1;

0 commit comments

Comments
 (0)