]> git.saurik.com Git - apple/libc.git/blobdiff - posix1e/acl.c
Libc-1353.41.1.tar.gz
[apple/libc.git] / posix1e / acl.c
index 8d05348f8201c44a69831dab891af77aeec0ba15..8314de7ee5751eccbf45e587885d15e0e920444e 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/types.h>
 #include <sys/acl.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -52,7 +53,8 @@ acl_free(void *obj)
         * Without tracking the addresses of text buffers and qualifiers,
         * we can't validate the obj argument here at all.
         */
-       free(obj);
+       if(obj != _FILESEC_REMOVE_ACL)
+               free(obj);
        return(0);
 }