mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-03 19:10:34 +01:00
svga: Prevent use after free.
Courtesy of clang static analyzer.
I was hunting for potential sources of memory corruption using Mesa with
a GL trace, and happened to find this (unrelated) issue.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit dcbb224c68)
This commit is contained in:
parent
93ffa56658
commit
473d665a4d
1 changed files with 1 additions and 0 deletions
|
|
@ -327,6 +327,7 @@ cleanup:
|
|||
util_bitmask_destroy(svga->stream_output_id_bm);
|
||||
util_bitmask_destroy(svga->query_id_bm);
|
||||
FREE(svga);
|
||||
svga = NULL;
|
||||
|
||||
done:
|
||||
SVGA_STATS_TIME_POP(svgascreen->sws);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue