Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2009 09:10:08 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r199700 - stable/8/lib/libc/posix1e
Message-ID:  <200911230910.nAN9A8TE046988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brueffer
Date: Mon Nov 23 09:10:08 2009
New Revision: 199700
URL: http://svn.freebsd.org/changeset/base/199700

Log:
  MFC: r199317
  
  Fix a memory leak in acl_from_text() in case the conversion succeeded.

Modified:
  stable/8/lib/libc/posix1e/acl_from_text.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/posix1e/acl_from_text.c
==============================================================================
--- stable/8/lib/libc/posix1e/acl_from_text.c	Mon Nov 23 09:02:08 2009	(r199699)
+++ stable/8/lib/libc/posix1e/acl_from_text.c	Mon Nov 23 09:10:08 2009	(r199700)
@@ -257,6 +257,7 @@ acl_from_text(const char *buf_p)
 	}
 #endif
 
+	free(mybuf_p);
 	return(acl);
 
 error_label:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911230910.nAN9A8TE046988>