panfrost: Don't leak temporary descriptors array
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 27 Apr 2020 14:09:02 +0000 (16:09 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 30 Apr 2020 14:27:38 +0000 (16:27 +0200)
commitbc11deb86d8bc037d842a04f8782461a5472ecf1
tree8c6a4ae58b3d12d1449daeef40385dc67cada569
parent3c98c452f012d20bcca3038af88bcbe7278d9c68
panfrost: Don't leak temporary descriptors array

As found by Coverity:

>>>     CID 1462596:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "descriptors" going out of scope leaks the storage it points to.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>
src/gallium/drivers/panfrost/pan_cmdstream.c