]> git.ozlabs.org Git - ppp.git/blobdiff - chat/chat.c
Various fixes for errors found by coverity static analysis (#109)
[ppp.git] / chat / chat.c
index 710dba9a41c9c0edeb7d916ce1a7171ea80855d5..bf107335c8458fa296a75f171c967b6669fb4a17 100644 (file)
@@ -512,6 +512,7 @@ void msgf __V((const char *fmt, ...))
        syslog(LOG_INFO, "%s", line);
     if (to_stderr)
        fprintf(stderr, "%s\n", line);
+    va_end(args);
 }
 
 /*
@@ -537,6 +538,7 @@ void fatal __V((int code, const char *fmt, ...))
        syslog(LOG_ERR, "%s", line);
     if (to_stderr)
        fprintf(stderr, "%s\n", line);
+    va_end(args);
     terminate(code);
 }