diff options
author | Jose Fonseca <[email protected]> | 2018-01-22 15:05:22 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2018-01-22 21:12:41 +0000 |
commit | dcbb224c688bfdacb76107a9816647f64088e67e (patch) | |
tree | fe6d23bed8a7842933333aeab6cf97eaa461bc09 /src/gallium/drivers | |
parent | 60f15477dad1fa752a91ecf1c2bf0aabbccbf2e5 (diff) |
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: [email protected]
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 546b9f48b13..af16a99b72c 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -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); |