[PATCH] Fix Coverity issue in gpo code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix Coverity issue in gpo code

Samba - samba-technical mailing list
Hi,

please review and push.

Thanks,
Guenther
--
Günther Deschner                    GPG-ID: 8EE11688
Red Hat                         [hidden email]
Samba Team                              [hidden email]

patch.txt (1014 bytes) Download Attachment
signature.asc (208 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix Coverity issue in gpo code

Samba - samba-technical mailing list
On Tue, May 09, 2017 at 10:07:03PM +0200, Günther Deschner via samba-technical wrote:
> Hi,
>
> please review and push.

LGTM. Pushed !

> --
> Günther Deschner                    GPG-ID: 8EE11688
> Red Hat                         [hidden email]
> Samba Team                              [hidden email]

> From 36357ce16d0c098eb38ce61ed68281f1b2822c02 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <[hidden email]>
> Date: Tue, 9 May 2017 14:31:15 +0200
> Subject: [PATCH] s3-gpo: Fix CID #1405972 Resource leak
>
> Guenther
>
> Signed-off-by: Guenther Deschner <[hidden email]>
> ---
>  source3/libgpo/gpext/registry.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c
> index 4a0d0cf..ceb05f0 100644
> --- a/source3/libgpo/gpext/registry.c
> +++ b/source3/libgpo/gpext/registry.c
> @@ -342,6 +342,7 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
>  
>  err_cache_path_free:
>   talloc_free(gpo_cache_path);
> + talloc_free(entries);
>   return status;
>  }
>  
> --
> 2.9.3
>