1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

network: fix memleak in config_parse_hwaddr()

Fixes #10615.
This commit is contained in:
Yu Watanabe 2018-11-02 03:25:22 +09:00
parent 44386b449b
commit 899f0d259d

View File

@ -293,7 +293,7 @@ int config_parse_hwaddr(const char *unit,
return 0;
}
*hwaddr = TAKE_PTR(n);
free_and_replace(*hwaddr, n);
return 0;
}