iris: Don't leak the resource for unsupported modifier
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 25 Sep 2019 19:48:57 +0000 (12:48 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:06 +0000 (10:47 -0700)
commitf2fc5dece93019f0bab203247985cf350d541156
tree3ec8d063d3869584928752d58c309f84fdd38ece
parent7a619b5c759e9d1a9795d4d79c7746ec47a00431
iris: Don't leak the resource for unsupported modifier

Make sure the res struct is free'd before returning.

Fixes: 2dce0e94a3d ("iris: Initial commit of a new 'iris' driver for Intel Gen8+ GPUs.")
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resource.c