diff --git a/libs/libc/misc/lib_err.c b/libs/libc/misc/lib_err.c index 11c1cda138..04195ef0b5 100644 --- a/libs/libc/misc/lib_err.c +++ b/libs/libc/misc/lib_err.c @@ -97,6 +97,10 @@ void vwarnx(FAR const char *fmt, va_list ap) #else dprintf(STDERR_FILENO, "%d: %pV\n", getpid(), &vaf); #endif + +#ifdef va_copy + va_end(copy); +#endif } /****************************************************************************