Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109807816
D29871.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
592 B
Referenced Files
None
Subscribers
None
D29871.diff
View Options
diff --git a/lib/libc/posix1e/acl_support_nfs4.c b/lib/libc/posix1e/acl_support_nfs4.c
--- a/lib/libc/posix1e/acl_support_nfs4.c
+++ b/lib/libc/posix1e/acl_support_nfs4.c
@@ -142,9 +142,10 @@
int *try_compact)
{
int i, found, ever_found = 0;
- char *str, *flag;
+ char *str, *flag, *to_free;
str = strdup(strp);
+ to_free = str;
*try_compact = 0;
*var = 0;
@@ -166,12 +167,12 @@
"invalid flag \"%s\"", flags_name, flag);
else
*try_compact = 1;
- free(str);
+ free(to_free);
return (-1);
}
}
- free(str);
+ free(to_free);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 7:27 PM (7 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16536853
Default Alt Text
D29871.diff (592 B)
Attached To
Mode
D29871: fix leak in lib/libc/posix1e/acl_support_nfs4.c
Attached
Detach File
Event Timeline
Log In to Comment