[lxc-devel] [lxc/master] Revert "Set c to NULL after freeing it"
caglar10ur on Github
lxc-bot at linuxcontainers.org
Sat Jan 5 20:24:19 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 452 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190105/4d99c947/attachment.bin>
-------------- next part --------------
From 365d27e211f0191ddb9f4a469f979a7dd5e33c71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar at 10ur.org>
Date: Sat, 5 Jan 2019 12:22:17 -0800
Subject: [PATCH] Revert "Set c to NULL after freeing it"
---
src/lxc/lxccontainer.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index b04bd86e3c..1e5e6ad05a 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -299,7 +299,6 @@ static void lxc_container_free(struct lxc_container *c)
c->config_path = NULL;
free(c);
- c = NULL;
}
/* Consider the following case:
More information about the lxc-devel
mailing list