summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/disasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/tools/disasm.c')
-rw-r--r--src/intel/tools/disasm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
index e52761586d0..4ac7b902564 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/tools/disasm.c
@@ -101,8 +101,10 @@ gen_disasm_create(int pciid)
if (gd == NULL)
return NULL;
- if (!gen_get_device_info(pciid, &gd->devinfo))
+ if (!gen_get_device_info(pciid, &gd->devinfo)) {
+ free(gd);
return NULL;
+ }
brw_init_compaction_tables(&gd->devinfo);