conf: cleanup macros lxc_execute_bind_init

parent 7969675f
...@@ -3382,10 +3382,9 @@ static int lxc_execute_bind_init(struct lxc_handler *handler) ...@@ -3382,10 +3382,9 @@ static int lxc_execute_bind_init(struct lxc_handler *handler)
/* If init exists in the container, don't bind mount a static one */ /* If init exists in the container, don't bind mount a static one */
p = choose_init(conf->rootfs.mount); p = choose_init(conf->rootfs.mount);
if (p) { if (p) {
char *old = p; __do_free char *old = p;
p = strdup(old + strlen(conf->rootfs.mount)); p = strdup(old + strlen(conf->rootfs.mount));
free(old);
if (!p) if (!p)
return -ENOMEM; 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