Browse Source

nfqws,tpws: missing va_end

pull/1301/head
bol-van 2 weeks ago
parent
commit
1b880d42f9
  1. 1
      nfq/params.c
  2. 1
      tpws/params.c

1
nfq/params.c

@ -65,6 +65,7 @@ static int DLOG_VA(const char *format, int syslog_priority, bool condup, va_list
{ {
va_copy(args2,args); va_copy(args2,args);
DLOG_CON(format,syslog_priority,args2); DLOG_CON(format,syslog_priority,args2);
va_end(args2);
} }
if (params.debug) if (params.debug)
{ {

1
tpws/params.c

@ -50,6 +50,7 @@ static int DLOG_VA(const char *format, int syslog_priority, bool condup, int lev
{ {
va_copy(args2,args); va_copy(args2,args);
DLOG_CON(format,syslog_priority,args2); DLOG_CON(format,syslog_priority,args2);
va_end(args2);
} }
if (params.debug>=level) if (params.debug>=level)
{ {

Loading…
Cancel
Save