ext_direct_state_access: Fix memory leaks.
commit604bc0ecfbd68bfd5ae16fa97a34568c00a5e250
authorVinson Lee <vlee@freedesktop.org>
Wed, 18 May 2022 23:00:18 +0000 (18 16:00 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 20 May 2022 23:35:03 +0000 (20 23:35 +0000)
treee321618f5b1d2e817e9bd0a7dad1378f78fe1a25
parent41ee0223dd1bf68251663f7f462ed136a5c3da09
ext_direct_state_access: Fix memory leaks.

Fix defects reported by Coverity Scan.

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

Fixes: deec4392c ("ext_direct_state_access: add test for Framebuffer functions")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/679>
tests/spec/ext_direct_state_access/framebuffer.c