[Mesa-dev] [PATCH] intel/i965: fix resource leak

Kenneth Graunke kenneth at whitecape.org
Sun Sep 25 19:34:37 UTC 2016


On Sunday, September 25, 2016 7:42:16 PM PDT Nayan Deshmukh wrote:
> CovID: 1373370
> 
> Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>
> ---
>  src/intel/tools/disasm.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
> index e527615..a747a0a 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))
> -      return NULL;
> +   if (!gen_get_device_info(pciid, &gd->devinfo)) {
> +       free(gd);
> +       return NULL;
> +   }
>  
>     brw_init_compaction_tables(&gd->devinfo);
>  
> 

Thanks!

I changed the subject prefix to "aubinator:", fixed the indentation,
and pushed:

To ssh://git.freedesktop.org/git/mesa/mesa
   cb7c2c9..b382781  master -> master
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160925/2039add5/attachment.sig>


More information about the mesa-dev mailing list