]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: close fout on error in is_wlan()
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 4 Jan 2016 22:34:49 +0000 (14:34 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 4 Jan 2016 22:34:49 +0000 (14:34 -0800)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 78bf3e087f04db603fb8c485a273d48af27e0615..802a930120e4d8b080cdc934ca3699b3d0a1e939 100644 (file)
@@ -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);