Skip to content

Commit

Permalink
Merge pull request #3065 from lifeng68/fix_memory_leak
Browse files Browse the repository at this point in the history
fix memory leak in do_storage_create
  • Loading branch information
Christian Brauner committed Jun 28, 2019
2 parents c121b30 + 8ea9134 commit 9752e3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9752e3a

Please sign in to comment.