[PATCH] Fix double free in vfs_gluster_getwd()

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Oct 26 04:37:39 UTC 2017


On Wed, Oct 25, 2017 at 11:12:39AM -0700, Jeremy Allison via samba-technical wrote:
> On Wed, Oct 25, 2017 at 07:46:03PM +0200, Andreas Schneider wrote:
> > Hi,
> > 
> > the attached patch addresses a double free in vfs_glusterfs.
> > 
> > Review and push much appreciated :-)
> 
> Ooh - good catch ! RB+ and pushed.

Wouldn't our pattern be a SAFE_FREE(cwd) instead of free(cwd) ?

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