[lxc-devel] [lxc/master] confile: free netdev->downscript

0x0916 on Github lxc-bot at linuxcontainers.org
Tue Jun 27 14:14:45 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 340 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170627/3a009d26/attachment.bin>
-------------- next part --------------
From e07629138fc4fc2a5698a36e5ddf6c61ceccdb9f Mon Sep 17 00:00:00 2001
From: 0x0916 <w at laoqinren.net>
Date: Tue, 27 Jun 2017 22:12:38 +0800
Subject: [PATCH] confile: free netdev->downscript

Signed-off-by: 0x0916 <w at laoqinren.net>
---
 src/lxc/confile_legacy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/confile_legacy.c b/src/lxc/confile_legacy.c
index 7f86cdb0e..bb5c63c52 100644
--- a/src/lxc/confile_legacy.c
+++ b/src/lxc/confile_legacy.c
@@ -115,6 +115,7 @@ static void lxc_remove_nic(struct lxc_list *it)
 	if (netdev->type == LXC_NET_VETH)
 		free(netdev->priv.veth_attr.pair);
 	free(netdev->upscript);
+	free(netdev->downscript);
 	free(netdev->hwaddr);
 	free(netdev->mtu);
 	free(netdev->ipv4_gateway);


More information about the lxc-devel mailing list