Page MenuHomeFreeBSD

D9768.diff
No OneTemporary

D9768.diff

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

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)

Event Timeline