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:
parent
727ba17f55
commit
09348d4081
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user