tgsi: fix memory leak in tgsi sanity check
authorDave Airlie <airlied@redhat.com>
Fri, 10 Feb 2017 04:03:51 +0000 (14:03 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Feb 2017 22:00:30 +0000 (08:00 +1000)
commit69fc7a2c828adbb454072d386a26b568e56dd886
treeddd38713b0ec61da91af082246c370f51dba8386
parent62fef3e15984dbf278d6835895140fd788d20a38
tgsi: fix memory leak in tgsi sanity check

This just fixes this without repeating the code.

Reported-by: Li Qiang
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_sanity.c