From: Christian Brauner Date: Tue, 8 Dec 2020 17:54:56 +0000 (+0100) Subject: confile: cleanup clr_config_net_script_up() X-Git-Tag: lxc-5.0.0~330^2~82 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9e1608ecc4c33229257750e0a62f12727c312ab5;p=mirror_lxc.git confile: cleanup clr_config_net_script_up() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 580760686..4e02514a5 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5371,10 +5371,9 @@ static int clr_config_net_script_up(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); - free(netdev->upscript); - netdev->upscript = NULL; + free_disarm(netdev->upscript); return 0; }