Author: brueffer
Date: Mon Nov 23 09:16:39 2009
New Revision: 199703
URL: http://svn.freebsd.org/changeset/base/199703

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

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

Modified: stable/6/lib/libc/posix1e/acl_from_text.c
==============================================================================
--- stable/6/lib/libc/posix1e/acl_from_text.c   Mon Nov 23 09:15:16 2009        
(r199702)
+++ stable/6/lib/libc/posix1e/acl_from_text.c   Mon Nov 23 09:16:39 2009        
(r199703)
@@ -226,6 +226,7 @@ acl_from_text(const char *buf_p)
        }
 #endif
 
+       free(mybuf_p);
        return(acl);
 
 error_label:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to