pan/midg: Fix 2 memory leaks
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 22 Apr 2021 14:14:41 +0000 (16:14 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 22 Apr 2021 14:25:40 +0000 (16:25 +0200)
commit51a4bca3c33126fc6057b8edde300e0c1749a4ef
tree55418821720724dfb4dd0a22958672f002e38c9f
parent74c467d9886cbb588d9e8f0ac23775d4b9d780bd
pan/midg: Fix 2 memory leaks

The ssa_constants hash table and its elements are leaked. Pass the
context to the allocator to avoid that.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10408>
src/panfrost/midgard/midgard_compile.c