summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 6e8f3b5..3f6d2ea 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -589,6 +589,9 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags,
for (i = 1; i < mnt_argv.c; i++)
(void)printf(" %s", mnt_argv.a[i]);
(void)printf("\n");
+ free(optbuf);
+ free(mountprog);
+ mountprog = NULL;
return (0);
}
@@ -599,6 +602,8 @@ mountfs(const char *vfstype, const char *spec, const char *name, int flags,
}
free(optbuf);
+ free(mountprog);
+ mountprog = NULL;
if (verbose) {
if (statfs(name, &sf) < 0) {
OpenPOWER on IntegriCloud