nir: fix memleak in error path
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 26 Aug 2019 14:33:31 +0000 (15:33 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 3 Sep 2019 23:31:53 +0000 (00:31 +0100)
commit7659c6197f08587f57f101a88a7e477337ce363c
tree2c1664bf486d154a10bf68213b1ce8b50c404f55
parentc4969b0a25982505dd784257d7c12f1abe8b2180
nir: fix memleak in error path

Fixes: 2cf59861a8128a91bfdd ("nir: Add partial redundancy elimination for compares")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_opt_comparison_pre.c