]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Set c to NULL after freeing it
authorS.Çağlar Onur <caglar@10ur.org>
Wed, 26 Dec 2018 19:18:31 +0000 (11:18 -0800)
committerS.Çağlar Onur <caglar@10ur.org>
Wed, 26 Dec 2018 19:19:13 +0000 (11:19 -0800)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
src/lxc/lxccontainer.c

index 1e5e6ad05aa5cdcb9e0915c4ddbefc339dde7a14..b04bd86e3c069313d42b34864c700040ffe55bba 100644 (file)
@@ -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: