From 6c6af0c8b0d829f314a505e4f1e2726f6af48440 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 8 May 2019 16:19:23 +0100 Subject: [PATCH] i965_asm: avoid free()ing uninitialized pointers Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- src/intel/tools/i965_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/tools/i965_asm.c b/src/intel/tools/i965_asm.c index 6093b69f0b0..a8e7fe6eff0 100644 --- a/src/intel/tools/i965_asm.c +++ b/src/intel/tools/i965_asm.c @@ -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[] = { -- 2.30.2