network: fix double free()

This commit is contained in:
Yu Watanabe
2019-11-29 00:37:44 +09:00
committed by Zbigniew Jędrzejewski-Szmek
parent e681a2ee4d
commit 3db7d5d2bf

View File

@@ -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();