We throw away the data generated during compilation on the success path,
so we really ought to on the failure path as well. The caller has no
access to it anyway, so it's purely leaked.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
&fp->program);
program = brw_wm_fs_emit(brw, c, &fp->program, prog, &program_size);
- if (program == NULL)
+ if (program == NULL) {
+ ralloc_free(c);
return false;
+ }
if (c->prog_data.total_scratch) {
brw_get_scratch_bo(brw, &brw->wm.base.scratch_bo,