mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
amd/addrlib: Add missing va_end.
Fix defect reported by Coverity Scan. Missing varargs init or cleanup (VARARGS) missing_va_end: va_end was not called for debugPrintInput.ap. Fixes:69ea473eeb("amd/addrlib: update to the latest version") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7299> (cherry picked from commitc8630fd114)
This commit is contained in:
parent
06c593be5b
commit
08153eeb7d
2 changed files with 2 additions and 1 deletions
|
|
@ -3919,7 +3919,7 @@
|
|||
"description": "amd/addrlib: Add missing va_end.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "69ea473eeb91b2c4db26402c3bc2ed5799d26605"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ VOID Object::DebugPrint(
|
|||
m_client.callbacks.debugPrint(&debugPrintInput);
|
||||
|
||||
va_end(ap);
|
||||
va_end(debugPrintInput.ap);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue