cgroups: s/must_copy_string()/strdup()/g

parent db34950a
...@@ -3511,7 +3511,9 @@ static int __cgroup_init(struct cgroup_ops *ops, struct lxc_conf *conf) ...@@ -3511,7 +3511,9 @@ static int __cgroup_init(struct cgroup_ops *ops, struct lxc_conf *conf)
__do_free char *pin = NULL; __do_free char *pin = NULL;
char *chop, *cur; char *chop, *cur;
pin = must_copy_string(tmp); pin = strdup(tmp);
if (!pin)
return -errno;
chop = pin; chop = pin;
lxc_iterate_parts(cur, chop, ",") lxc_iterate_parts(cur, chop, ",")
......
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