Unverified Commit dfaaf1cf by Christian Brauner Committed by GitHub

Merge pull request #2763 from caglar10ur/dangling

Set c to NULL after freeing it
parents 46bccf60 370c7860
......@@ -299,6 +299,7 @@ static void lxc_container_free(struct lxc_container *c)
c->config_path = NULL;
free(c);
c = NULL;
}
/* Consider the following case:
......
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