svga: Prevent use after free.
authorJose Fonseca <jfonseca@vmware.com>
Mon, 22 Jan 2018 15:05:22 +0000 (15:05 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Mon, 22 Jan 2018 21:12:41 +0000 (21:12 +0000)
commitdcbb224c688bfdacb76107a9816647f64088e67e
treefe6d23bed8a7842933333aeab6cf97eaa461bc09
parent60f15477dad1fa752a91ecf1c2bf0aabbccbf2e5
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>
src/gallium/drivers/svga/svga_context.c