mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
vulkan: Fix leak of error messages
Fixes: 0cad3beb2a ("vulkan/log: Add common vk_error and vk_errorf helpers")
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14235>
This commit is contained in:
parent
749b82238b
commit
bdb8e615d1
1 changed files with 2 additions and 0 deletions
|
|
@ -305,6 +305,8 @@ __vk_errorv(const void *_obj, VkResult error,
|
|||
VK_LOG_NO_OBJS(instance), file, line,
|
||||
"%s (%s)", message, error_str);
|
||||
}
|
||||
|
||||
ralloc_free(message);
|
||||
} else {
|
||||
if (object) {
|
||||
__vk_log(VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue