Unverified Commit 9752e3a9 by Christian Brauner Committed by GitHub

Merge pull request #3065 from lifeng68/fix_memory_leak

fix memory leak in do_storage_create
parents c121b300 8ea91347
......@@ -1304,6 +1304,7 @@ static struct lxc_storage *do_storage_create(struct lxc_container *c,
if (!c->set_config_item(c, "lxc.rootfs.path", bdev->src)) {
ERROR("Failed to set \"lxc.rootfs.path = %s\"", bdev->src);
storage_put(bdev);
return NULL;
}
......
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