Commit 0ef4f010 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

lib: Initialize child messages correctly

Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f16a08e5
......@@ -197,6 +197,8 @@ int criu_add_ext_mount(char *key, char *val)
m = malloc(sizeof(*m));
if (!m)
goto er;
ext_mount_map__init(m);
m->key = strdup(key);
if (!m->key)
goto er_n;
......@@ -232,6 +234,8 @@ int criu_add_veth_pair(char *in, char *out)
p = malloc(sizeof(*p));
if (!p)
goto er;
criu_veth_pair__init(p);
p->if_in = strdup(in);
if (!p->if_in)
goto er_p;
......
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