svn commit: r199317 - head/lib/libc/posix1e

Christian Brueffer brueffer at FreeBSD.org
Mon Nov 16 09:28:22 UTC 2009


Author: brueffer
Date: Mon Nov 16 09:28:22 2009
New Revision: 199317
URL: http://svn.freebsd.org/changeset/base/199317

Log:
  Fix a memory leak in acl_from_text() in case the conversion succeeded.
  
  Submitted by:	Jim Wilcoxson <prirun at gmail.com>
  MFC after:	1 week

Modified:
  head/lib/libc/posix1e/acl_from_text.c

Modified: head/lib/libc/posix1e/acl_from_text.c
==============================================================================
--- head/lib/libc/posix1e/acl_from_text.c	Mon Nov 16 08:32:13 2009	(r199316)
+++ head/lib/libc/posix1e/acl_from_text.c	Mon Nov 16 09:28:22 2009	(r199317)
@@ -257,6 +257,7 @@ acl_from_text(const char *buf_p)
 	}
 #endif
 
+	free(mybuf_p);
 	return(acl);
 
 error_label:


More information about the svn-src-all mailing list