Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149794536
D10062.1790924809.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
466 B
Referenced Files
None
Subscribers
None
D10062.1790924809.diff
View Options
Index: sbin/mount/getmntopts.c
===================================================================
--- sbin/mount/getmntopts.c
+++ sbin/mount/getmntopts.c
@@ -175,11 +175,14 @@
{
va_list ap;
char val[255] = { 0 };
+ char *sval;
va_start(ap, fmt);
vsnprintf(val, sizeof(val), fmt, ap);
va_end(ap);
- build_iovec(iov, iovlen, name, strdup(val), (size_t)-1);
+ sval = strdup(val);
+ build_iovec(iov, iovlen, name, sval, (size_t)-1);
+ free(sval);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 7:06 AM (12 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30093024
Default Alt Text
D10062.1790924809.diff (466 B)
Attached To
Mode
D10062: Fix memory leak in mount
Attached
Detach File
Event Timeline
Log In to Comment