FreeBSD Bugzilla – Attachment 246464 Details for
Bug 275232
libc memory leak - acl_to_text() / acl_to_text_np()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix three small memory leaks in libc / acl_to_text()
acl_to_text_nfs4.patch (text/plain), 665 bytes, created by
Peter Eriksson
on 2023-11-21 14:00:49 UTC
(
hide
)
Description:
Patch to fix three small memory leaks in libc / acl_to_text()
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2023-11-21 14:00:49 UTC
Size:
665 bytes
patch
obsolete
>--- lib/libc/posix1e/acl_to_text_nfs4.c.ORIG 2023-11-21 14:29:18.189987000 +0100 >+++ lib/libc/posix1e/acl_to_text_nfs4.c 2023-11-21 14:29:52.636180000 +0100 >@@ -75,6 +75,7 @@ > snprintf(str, size, "user:%d", (unsigned int)*id); > else > snprintf(str, size, "user:%s", pwd->pw_name); >+ acl_free(id); > break; > > case ACL_GROUP_OBJ: >@@ -94,6 +95,7 @@ > snprintf(str, size, "group:%d", (unsigned int)*id); > else > snprintf(str, size, "group:%s", grp->gr_name); >+ acl_free(id); > break; > > case ACL_EVERYONE: >@@ -160,6 +162,7 @@ > if (id == NULL) > return (-1); > snprintf(str, size, ":%d", (unsigned int)*id); >+ acl_free(id); > } > > return (0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275232
: 246464