Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105815724
D9768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
687 B
Referenced Files
None
Subscribers
None
D9768.diff
View Options
Index: sbin/mdmfs/mdmfs.c
===================================================================
--- sbin/mdmfs/mdmfs.c
+++ sbin/mdmfs/mdmfs.c
@@ -275,9 +275,12 @@
do_mdconfig_attach_au(mdconfig_arg, mdtype);
else
do_mdconfig_attach(mdconfig_arg, mdtype);
+ free(mdconfig_arg);
if (newfs)
do_newfs(newfs_arg);
+ free(newfs_arg);
do_mount(mount_arg, mtpoint);
+ free(mount_arg);
do_mtptsetup(mtpoint, &mi);
return (0);
@@ -408,6 +411,7 @@
strncpy(linebuf, linep + mdnamelen, linelen);
linebuf[linelen] = '\0';
ul = strtoul(linebuf, &p, 10);
+ free(linebuf);
if (ul == ULONG_MAX || *p != '\n')
errx(1, "unexpected output from mdconfig (attach)");
unit = ul;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 2:55 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550153
Default Alt Text
D9768.diff (687 B)
Attached To
Mode
D9768: Fix memory leaks in mdmfs
Attached
Detach File
Event Timeline
Log In to Comment