i965_asm: fix memleak
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 8 May 2019 15:18:51 +0000 (16:18 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 9 May 2019 10:03:15 +0000 (10:03 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/i965_asm.c

index 1a53568..6093b69 100644 (file)
@@ -82,6 +82,7 @@ i965_disasm_init(uint16_t pci_id)
    if (!gen_get_device_info(pci_id, devinfo)) {
       fprintf(stderr, "can't find device information: pci_id=0x%x\n",
               pci_id);
+      free(devinfo);
       return NULL;
    }