aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools
diff options
context:
space:
mode:
authorNayan Deshmukh <[email protected]>2016-09-25 19:42:16 +0530
committerKenneth Graunke <[email protected]>2016-09-25 12:32:48 -0700
commitb3827819aac4304329ab80dd052a7554afa3b811 (patch)
tree42e5e1ea4f4d8ab063e1d7d8fa9c127c861807ec /src/intel/tools
parentcb7c2c9d65d8a1db31e65023175ee81e029ed041 (diff)
aubinator: fix resource leak
CovID: 1373370 Signed-off-by: Nayan Deshmukh <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/tools')
-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);