lxccontainer: non-functional changes

parent eee2c6a0
...@@ -1597,12 +1597,11 @@ out_error: ...@@ -1597,12 +1597,11 @@ out_error:
static void lxcapi_clear_config(struct lxc_container *c) static void lxcapi_clear_config(struct lxc_container *c)
{ {
if (c) { if (!c || !c->lxc_conf)
if (c->lxc_conf) { return;
lxc_conf_free(c->lxc_conf);
c->lxc_conf = NULL; lxc_conf_free(c->lxc_conf);
} c->lxc_conf = NULL;
}
} }
#define do_lxcapi_clear_config(c) lxcapi_clear_config(c) #define do_lxcapi_clear_config(c) lxcapi_clear_config(c)
......
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