diff options
| -rw-r--r-- | sbin/mount/mount.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 25d0aac1acc0..6b321fa984de 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -588,6 +588,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); } @@ -598,6 +601,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) { |
