1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

sd-dhecp-lease: use free_and_replace() at one more

This commit is contained in:
Yu Watanabe 2018-09-27 18:04:08 +09:00
parent 727ba17f55
commit 09348d4081

View File

@ -330,8 +330,7 @@ static int lease_parse_string(const uint8_t *option, size_t len, char **ret) {
if (!string)
return -ENOMEM;
free(*ret);
*ret = string;
free_and_replace(*ret, string);
}
return 0;