Commit 8603ae77 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

mount: Shrink mnt_entry_free a bit

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3ae67d7b
......@@ -2209,14 +2209,13 @@ struct mount_info *mnt_entry_alloc()
void mnt_entry_free(struct mount_info *mi)
{
if (mi == NULL)
return;
if (mi) {
xfree(mi->root);
xfree(mi->mountpoint);
xfree(mi->source);
xfree(mi->options);
xfree(mi);
}
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment