Commit 01b81f17 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

criu: use xmalloc()

1. Make sure to use xmalloc() where an error message makes sense
2. Make sure to not ignore if NULL is returned

travis-ci: success for Assorted nitpicks
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d98c19ef
......@@ -290,9 +290,8 @@ static int autofs_revisit_options(struct mount_info *pm)
char *str;
int ret = -ENOMEM;
str = malloc(1024);
str = xmalloc(1024);
if (!str) {
pr_err("failed to allocate\n");
return -ENOMEM;
}
......
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