network: use _cleanup_ attribute at one more place

This commit is contained in:
Yu Watanabe 2020-09-10 13:39:01 +09:00
parent a8a50f4fb7
commit 696c0832e2
1 changed files with 3 additions and 1 deletions

View File

@ -796,7 +796,7 @@ int config_parse_wireguard_keepalive(
void *data,
void *userdata) {
WireguardPeer *peer;
_cleanup_(wireguard_peer_free_or_set_invalidp) WireguardPeer *peer = NULL;
uint16_t keepalive = 0;
Wireguard *w;
int r;
@ -824,6 +824,8 @@ int config_parse_wireguard_keepalive(
}
peer->persistent_keepalive_interval = keepalive;
TAKE_PTR(peer);
return 0;
}