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:
Emma Anholt 2021-12-16 15:54:02 -08:00 committed by Marge Bot
parent 749b82238b
commit bdb8e615d1

View file

@ -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,