Memory leak in tdb/tdb.c

Jeremy Allison jra at samba.org
Wed Feb 27 09:56:26 GMT 2002


On Wed, Feb 27, 2002 at 01:51:48PM +0800, Ong Kian Win wrote:
> Oops. =)
> 
> Regards,
> Kian Win
> 
> Samba CVS HEAD, Feb 25 10:09 +0800
> 
> --- tdb.c.bkp.0	Wed Jan 30 14:08:41 2002
> +++ tdb.c	Wed Feb 27 13:42:20 2002
> @@ -1562,6 +1562,7 @@
>  	if (tdb->fd != -1)
>  		close(tdb->fd);
>  	SAFE_FREE(tdb->locked);
> +	SAFE_FREE(tdb);
>  	errno = save_errno;
>  	return NULL;
>  	}


Well spotted - fixed in CVS. Thanks !

Jeremy.




More information about the samba-technical mailing list