i965_asm: avoid free()ing uninitialized pointers
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 8 May 2019 15:19:23 +0000 (16:19 +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 6093b69f0b07c14ee949192e381f13fd992bda65..a8e7fe6eff0d5cbc2a3512b2e04efbcaa2d316a5 100644 (file)
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
    int offset = 0, err;
    int start_offset = 0;
    struct disasm_info *disasm_info;
-   struct gen_device_info *devinfo;
+   struct gen_device_info *devinfo = NULL;
    int result = EXIT_FAILURE;
 
    const struct option i965_asm_opts[] = {