libs/libc/lib_err.c:add va_end to vwarn

call va_copy,after need call va_end
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-04-01 16:01:41 +08:00 committed by Xiang Xiao
parent 35009c5d4d
commit 14c5f61e77

View File

@ -70,6 +70,10 @@ void vwarn(FAR const char *fmt, va_list ap)
#else
dprintf(STDERR_FILENO, "%d: %pV: %s\n", getpid(), &vaf, strerror(error));
#endif
#ifdef va_copy
va_end(copy);
#endif
}
/****************************************************************************