aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r--util-linux/umount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 29e2e3b66..391d245a8 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -158,10 +158,8 @@ static void mtab_free(void)
158 this = mtab_cache; 158 this = mtab_cache;
159 while (this) { 159 while (this) {
160 next = this->next; 160 next = this->next;
161 if (this->device) 161 free(this->device);
162 free(this->device); 162 free(this->mountpt);
163 if (this->mountpt)
164 free(this->mountpt);
165 free(this); 163 free(this);
166 this = next; 164 this = next;
167 } 165 }