diff options
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index b0f393c..6661db8 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -89,8 +89,7 @@ void mtab_read(void) return; } while ((e = getmntent(fp))) { - entry = malloc(sizeof(struct _mtab_entry_t)); - + entry = xmalloc(sizeof(struct _mtab_entry_t)); entry->device = strdup(e->mnt_fsname); entry->mountpt = strdup(e->mnt_dir); entry->next = mtab_cache; |