Skip to content

Commit

Permalink
confile: cleanup clr_config_net_mtu()
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 afa97df commit 18bab94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxc/confile.c
Expand Up @@ -5410,10 +5410,9 @@ static int clr_config_net_mtu(const char *key, struct lxc_conf *lxc_conf,
struct lxc_netdev *netdev = data;

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

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

return 0;
}
Expand Down

0 comments on commit 18bab94

Please sign in to comment.