Skip to content
Snippets Groups Projects
Commit a728b8a7 authored by Vinson Lee's avatar Vinson Lee Committed by Eric Engestrom
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>
(cherry picked from commit 4a38ed82)
parent 764e965f
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