confile: cleanup clr_config_net_script_up()

parent 81687914
...@@ -4979,10 +4979,9 @@ static int clr_config_net_script_up(const char *key, struct lxc_conf *lxc_conf, ...@@ -4979,10 +4979,9 @@ static int clr_config_net_script_up(const char *key, struct lxc_conf *lxc_conf,
struct lxc_netdev *netdev = data; struct lxc_netdev *netdev = data;
if (!netdev) if (!netdev)
return -1; return ret_errno(EINVAL);
free(netdev->upscript); free_disarm(netdev->upscript);
netdev->upscript = NULL;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment