aboutsummaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mount.c b/mount.c
index 0295fabc6..4e0e3e428 100644
--- a/mount.c
+++ b/mount.c
@@ -319,10 +319,14 @@ void show_mounts()
319 while ((m = getmntent(mountTable)) != 0) { 319 while ((m = getmntent(mountTable)) != 0) {
320 char *blockDevice = m->mnt_fsname; 320 char *blockDevice = m->mnt_fsname;
321 if (strcmp(blockDevice, "/dev/root") == 0) { 321 if (strcmp(blockDevice, "/dev/root") == 0) {
322 find_real_root_device_name( blockDevice); 322 blockDevice = find_real_root_device_name(blockDevice);
323 } 323 }
324 printf("%s on %s type %s (%s)\n", blockDevice, m->mnt_dir, 324 printf("%s on %s type %s (%s)\n", blockDevice, m->mnt_dir,
325 m->mnt_type, m->mnt_opts); 325 m->mnt_type, m->mnt_opts);
326#ifdef BB_FEATURE_CLEAN_UP
327 if(blockDevice != m->mnt_fsname)
328 free(blockDevice);
329#endif
326 } 330 }
327 endmntent(mountTable); 331 endmntent(mountTable);
328 } else { 332 } else {