Skip to content

Commit 16fd376

Browse files
jsc-semichalvasko
authored andcommitted
src/parser_yin.c: coverity fix - missing varargs init or cleanup
1 parent 2565e0f commit 16fd376

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser_yin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ subelems_allocator(struct lysp_yin_ctx *ctx, size_t count, struct lysp_node *par
396396
return LY_SUCCESS;
397397

398398
mem_err:
399+
va_end(ap);
399400
subelems_deallocator(count, *result);
400401
LOGMEM(ctx->xmlctx->ctx);
401402
return LY_EMEM;

0 commit comments

Comments
 (0)