ralloc: don't write to memory in case of alloc fail.
authorDave Airlie <airlied@redhat.com>
Wed, 17 Apr 2013 01:07:49 +0000 (11:07 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Apr 2013 23:50:42 +0000 (09:50 +1000)
commit47bd6e46fe89e1cce61b11bcaa7b81f807011c23
tree4351274e76f13ee3e60179515aa0b63865531819
parent815ca0bf38de89cff533a413066a7e23a0aa5fb0
ralloc: don't write to memory in case of alloc fail.

For some reason I made this happen under indirect rendering,
I think we might have a leak, valgrind gave out, so I said I'd
fix the basic problem.

NOTE: This is a candidate for stable branches.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/ralloc.c