mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
e91108691d
commit
755c040060
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue