crocus: Use ralloc_free for memory allocated with rzalloc
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 7 Mar 2023 17:14:57 +0000 (18:14 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Mar 2023 16:08:33 +0000 (16:08 +0000)
commitc65948a34b1c9b72df2c2f82f73810f7eaea76fd
tree4b59f141477bc3590436a5c6e33fb1a6a4b52ca4
parentc67633be62af110a7baa1aa49aa847c80e3d2c2a
crocus: Use ralloc_free for memory allocated with rzalloc

Pointed out by GCC with LTO:

../src/gallium/drivers/crocus/crocus_context.c: In function 'crocus_create_context':
../src/gallium/drivers/crocus/crocus_context.c:261:7: error: 'free' called on pointer 'block_174' with nonzero offset 48 [-Werror=free-nonheap-object]
  261 |       free(ctx);
      |       ^

v2:
* Use ice pointer instead of ctx. (Karol Herbst)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21781>
src/gallium/drivers/crocus/crocus_context.c