dri: Free the already allocated optionCache and optionInfo on failure
authorCorentin Noël <corentin.noel@collabora.com>
Thu, 12 Jan 2023 09:35:21 +0000 (10:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 12 Jan 2023 13:11:31 +0000 (13:11 +0000)
commitbee771412c03b03a503172023c82d8b37dca8d73
tree9a929851e9ce616579e7bd7b1a1f4625fdefa89c
parent7e61696de960fa7ff7b45042923dc4d6bcc85886
dri: Free the already allocated optionCache and optionInfo on failure

These fields are allocated as they have to be taken into account for initScreen.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20663>
src/gallium/frontends/dri/dri_util.c