[PATCH] printer_list: fix talloc tos leak of tdb record

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Oct 7 07:30:37 MDT 2014


On Tue, Oct 07, 2014 at 02:49:59PM +0200, David Disseldorp wrote:
> Reported-by: Franz Pförtsch <franz.pfoertsch at brose.com>
> Signed-off-by: David Disseldorp <ddiss at samba.org>
> ---
>  source3/printing/printer_list.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/source3/printing/printer_list.c b/source3/printing/printer_list.c
> index 9a9fa0b..7868874 100644
> --- a/source3/printing/printer_list.c
> +++ b/source3/printing/printer_list.c
> @@ -230,6 +230,7 @@ NTSTATUS printer_list_get_last_refresh(time_t *last_refresh)
>  
>  	ret = tdb_unpack(data.dptr, data.dsize,
>  			 PL_TSTAMP_FORMAT, &time_h, &time_l);
> +	TALLOC_FREE(data.dptr);
>  	if (ret == -1) {
>  		DEBUG(1, ("Failed to un pack printer data"));
>  		status = NT_STATUS_INTERNAL_DB_CORRUPTION;
> -- 
> 1.8.4.5

Pushed.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list