diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-10-16 18:06:56 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-10-17 10:13:32 +0200 |
commit | c76197ddbbd0c29adc2bceff2ee9f740f71d134d (patch) | |
tree | 6eab317dc5feeba8e9b6c7295d4f571260c34f8c /trust | |
parent | 8a8db182af533a43b4d478d28af8623035475d68 (diff) |
build: Call va_end() always when leaving the function
Diffstat (limited to 'trust')
-rw-r--r-- | trust/parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/trust/parser.c b/trust/parser.c index f92cdc9..e912c3a 100644 --- a/trust/parser.c +++ b/trust/parser.c @@ -697,8 +697,10 @@ p11_parser_formats (p11_parser *parser, func = va_arg (va, parser_func); if (func == NULL) break; - if (!p11_array_push (formats, func)) + if (!p11_array_push (formats, func)) { + va_end (va); return_if_reached (); + } } va_end (va); |