nir: fix memleak in error path

Fixes: 2cf59861 ("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>
23 jobs for !1847 with nir-memleak in 18 minutes and 45 seconds (queued for 31 seconds)
detached
Status Job ID Name Coverage
  Containers Build
passed #566095
debian

00:00:22

 
  Build+Test
passed #566104
meson-arm64

00:02:29

passed #566103
meson-armhf

00:02:27

passed #566098
meson-clang

00:06:42

passed #566101
meson-clover

00:10:27

passed #566105
meson-i386

00:02:31

passed #566096
meson-main

00:09:30

passed #566097
meson-swr-glvnd

00:06:31

passed #566102
meson-vulkan

00:02:16

passed #566107
scons-llvm

00:04:00

passed #566106
scons-nollvm

00:03:19

passed #566099
scons-swr

00:09:30

passed #566100
scons-win64

00:09:56

 
  Test
passed #566108
test-llvmpipe-gles2 1/4

00:03:36

passed #566109
test-llvmpipe-gles2 2/4

00:03:21

passed #566110
test-llvmpipe-gles2 3/4

00:03:02

passed #566111
test-llvmpipe-gles2 4/4

00:03:46

passed #566112
test-softpipe-gles2 1/4

00:01:27

passed #566113
test-softpipe-gles2 2/4

00:02:19

passed #566114
test-softpipe-gles2 3/4

00:01:24

passed #566115
test-softpipe-gles2 4/4

00:01:29

passed #566116
test-softpipe-gles3-limited

00:03:58

 
  External
passed continuous-integration/appveyor/branch