summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2009-11-16 09:28:22 +0000
committerbrueffer <brueffer@FreeBSD.org>2009-11-16 09:28:22 +0000
commit0f3100cf28d51dfe59ee4db0b06ecd48b6aed695 (patch)
treeec03732f1d01d99e1791e65bbcb73c4703b42fd3 /lib
parent414ed7a800a574edf788f816c13263b04eeb5545 (diff)
downloadFreeBSD-src-0f3100cf28d51dfe59ee4db0b06ecd48b6aed695.zip
FreeBSD-src-0f3100cf28d51dfe59ee4db0b06ecd48b6aed695.tar.gz
Fix a memory leak in acl_from_text() in case the conversion succeeded.
Submitted by: Jim Wilcoxson <prirun@gmail.com> MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/posix1e/acl_from_text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_from_text.c b/lib/libc/posix1e/acl_from_text.c
index 98c5426..c600987 100644
--- a/lib/libc/posix1e/acl_from_text.c
+++ b/lib/libc/posix1e/acl_from_text.c
@@ -257,6 +257,7 @@ acl_from_text(const char *buf_p)
}
#endif
+ free(mybuf_p);
return(acl);
error_label:
OpenPOWER on IntegriCloud