aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index f8ae1df19..0fcd8e561 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1693,10 +1693,13 @@ int mount_main(int argc, char **argv)
1693 1693
1694 // Mount this thing. 1694 // Mount this thing.
1695 1695
1696 // NFS mounts want this to be xrealloc-able
1697 mtcur->mnt_opts = xstrdup(mtcur->mnt_opts);
1696 if (singlemount(mtcur, 1)) { 1698 if (singlemount(mtcur, 1)) {
1697 /* Count number of failed mounts */ 1699 /* Count number of failed mounts */
1698 rc++; 1700 rc++;
1699 } 1701 }
1702 free(mtcur->mnt_opts);
1700 } 1703 }
1701 } 1704 }
1702 if (ENABLE_FEATURE_CLEAN_UP) endmntent(fstab); 1705 if (ENABLE_FEATURE_CLEAN_UP) endmntent(fstab);