Skip to content

Commit 1572dcd

Browse files
committed
Add a couple missing va_end() calls
1 parent 96d793e commit 1572dcd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

parse_misc.cc

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void VLerror(const YYLTYPE&loc, const char*msg, ...)
5353

5454
fprintf(stderr, "%s:%d: ", loc.text, loc.first_line);
5555
vfprintf(stderr, msg, ap);
56+
va_end(ap);
5657
fprintf(stderr, "\n");
5758

5859
error_count += 1;

vpi/table_mod_parse.y

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
%{
33
/*
4-
* Copyright (C) 2011 Cary R. ([email protected])
4+
* Copyright (C) 2011-2014 Cary R. ([email protected])
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -231,6 +231,7 @@ void yyerror(const char *fmt, ...)
231231
fprintf(stderr, "%s:%u: TABLE ERROR: ", in_file_name,
232232
yylloc.first_line-1);
233233
vfprintf(stderr, fmt, ap);
234+
va_end(ap);
234235
fprintf(stderr, "\n");
235236
errors += 1;
236237
}

0 commit comments

Comments
 (0)