summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp-common.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-11-28 16:37:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-28 19:50:45 +0100
commit3db7d5d2bfcff642ad19c586b51dcce523eb2dfe (patch)
tree52b51f06e286abb8b798eb8dfec8fdeedd2c0217 /src/network/networkd-dhcp-common.c
parentman: use literal tag at one more place (diff)
downloadsystemd-3db7d5d2bfcff642ad19c586b51dcce523eb2dfe.tar.xz
systemd-3db7d5d2bfcff642ad19c586b51dcce523eb2dfe.zip
network: fix double free()
Diffstat (limited to '')
-rw-r--r--src/network/networkd-dhcp-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c
index 7f8da46cf5..ea5974c32a 100644
--- a/src/network/networkd-dhcp-common.c
+++ b/src/network/networkd-dhcp-common.c
@@ -322,7 +322,7 @@ int config_parse_dhcp_send_option(
return 0;
}
- free(word);
+ word = mfree(word);
r = extract_first_word(&p, &word, ":", 0);
if (r == -ENOMEM)
return log_oom();