Skip to content

Commit

Permalink
coverity: close fout on error in is_wlan()
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Jan 4, 2016
1 parent 9bfdc0a commit 7d72b95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -3057,6 +3057,7 @@ static struct lxc_container *do_lxcapi_clone(struct lxc_container *c, const char
c->lxc_conf->unexpanded_config = strdup(saved_unexp_conf);
if (!c->lxc_conf->unexpanded_config) {
ERROR("Out of memory");
fclose(fout);
goto out;
}
clear_unexp_config_line(c->lxc_conf, "lxc.rootfs", false);
Expand Down

0 comments on commit 7d72b95

Please sign in to comment.