These look like memory leaks but I would like confirmation:
CID 1016705
CID 1016706
CID 1016707
Details
Details
Anything with ACLs
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/libc/posix1e/acl_calc_mask.c | ||
---|---|---|
107 | Shouldn't this be acl_free(acl_new) instead? | |
126 | I know it's not in the patch, but it... looks curious. WTF? | |
lib/libc/posix1e/acl_strip.c | ||
99 | You should also free acl_old, right? Same in the next few cases. | |
116 | ... and here, and few below. Might be a good idea to replace all those "return (NULL)" with "goto fail" to avoid code duplication. |
Comment Actions
It is quite a mess, I was following blindly what Coverity reported.
I'll update the patch. thanks!
lib/libc/posix1e/acl_calc_mask.c | ||
---|---|---|
107 | Yes, I got confused by Coverity as it reports acl_int_new is (also) leaked. | |
126 | There's nothing here in "svn diff". | |
lib/libc/posix1e/acl_strip.c | ||
86 | Coverity flags this one because acl_old != NULL from line 78. | |
99 | CID 1016705: From line 78 acl_new != NULL. |
This comment was removed by pfg.
This comment was removed by pfg.