summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp4.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-07-09 00:15:21 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-07-29 15:48:49 +0200
commitf60e65583e2d5b34a97ce1bfa40b6af3bcc24f24 (patch)
treeaf70f00ffbeec5f810b908951b9115df33dacc17 /src/network/networkd-dhcp4.c
parentMerge pull request #28562 from yuwata/ukify-option-length (diff)
downloadsystemd-f60e65583e2d5b34a97ce1bfa40b6af3bcc24f24.tar.xz
systemd-f60e65583e2d5b34a97ce1bfa40b6af3bcc24f24.zip
network/address: free Address object by caller that passed to link_request_address()
Follow-up for 9684a8ded083dd427f843b0c40aa0292e6c7ae06. Now, the input Address object is always copied, hence it is not necessary to free it in link_request_address().
Diffstat (limited to 'src/network/networkd-dhcp4.c')
-rw-r--r--src/network/networkd-dhcp4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
index fd8ef402bd..fd72f73413 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -984,7 +984,7 @@ static int dhcp4_request_address(Link *link, bool announce) {
else
address_unmark(existing);
- r = link_request_address(link, TAKE_PTR(addr), true, &link->dhcp4_messages,
+ r = link_request_address(link, addr, &link->dhcp4_messages,
dhcp4_address_handler, NULL);
if (r < 0)
return log_link_error_errno(link, r, "Failed to request DHCPv4 address: %m");