Skip to content

Commit

Permalink
confile: cleanup clr_config_net_ipv6_gateway()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 9, 2020
1 parent 6340f28 commit 2095904
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxc/confile.c
Expand Up @@ -5485,10 +5485,9 @@ static int clr_config_net_ipv6_gateway(const char *key,
struct lxc_netdev *netdev = data;

if (!netdev)
return -1;
return ret_errno(EINVAL);

free(netdev->ipv6_gateway);
netdev->ipv6_gateway = NULL;
free_disarm(netdev->ipv6_gateway);

return 0;
}
Expand Down

0 comments on commit 2095904

Please sign in to comment.