summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 4bd6433..a191f32 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -351,7 +351,7 @@ static int singlemount(struct mntent *mp)
// If mount failed, clean up loop file (if any).
- if (rc && loopFile) {
+ if (ENABLE_FEATURE_MOUNT_LOOP && rc && loopFile) {
del_loop(mp->mnt_fsname);
if (ENABLE_FEATURE_CLEAN_UP) {
free(loopFile);