Skip to content
Snippets Groups Projects
Commit 4a38ed82 authored by Vinson Lee's avatar Vinson Lee Committed by Marge Bot
Browse files

virgl: Allocate qdws after virgl_init_context to avoid leak.


Fix defect reported by Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable qdws going out of scope leaks the storage it
points to.

Fixes: 9a7d6a11 ("virgl/drm: explicit context initialization")
Suggested-by: default avatarGert Wollny <gert.wollny@collabora.com>
Signed-off-by: default avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: default avatarGert Wollny <gert.wollny@collabora.com>
Part-of: <mesa/mesa!13609>
parent 1ca90f87
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment