freedreno: Add missing va_end.

Fix warning reported by Coverity Scan.

Missing varargs init or cleanup (VARARGS)
missing_va_end: va_end was not called for ap.

Fixes: a0ca1462f3 ("freedreno: add logging infrastructure")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5221>
This commit is contained in:
Vinson Lee 2020-05-26 16:09:03 -07:00 committed by Marge Bot
parent e91108691d
commit 755c040060

View file

@ -215,8 +215,10 @@ _fd_log(struct fd_batch *batch, const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
if (vasprintf(&msg, fmt, ap) < 0)
if (vasprintf(&msg, fmt, ap) < 0) {
va_end(ap);
return;
}
va_end(ap);
u_fifo_add(chunk->msg_fifo, msg);