aubinator: fix resource leak
CovID: 1373370 Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
cb7c2c9d65
commit
b3827819aa
|
@ -101,8 +101,10 @@ gen_disasm_create(int pciid)
|
||||||
if (gd == NULL)
|
if (gd == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!gen_get_device_info(pciid, &gd->devinfo))
|
if (!gen_get_device_info(pciid, &gd->devinfo)) {
|
||||||
|
free(gd);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
brw_init_compaction_tables(&gd->devinfo);
|
brw_init_compaction_tables(&gd->devinfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue