From: Eric Engestrom Date: Wed, 8 May 2019 15:18:51 +0000 (+0100) Subject: i965_asm: fix memleak X-Git-Tag: upstream/19.3.0~6447 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51597eca84409f7f6f50d8ccc0cdfdc1c6905141;p=platform%2Fupstream%2Fmesa.git i965_asm: fix memleak Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/tools/i965_asm.c b/src/intel/tools/i965_asm.c index 1a53568..6093b69 100644 --- a/src/intel/tools/i965_asm.c +++ b/src/intel/tools/i965_asm.c @@ -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; }