env-file: use free_and_replace()
This commit is contained in:
@@ -330,8 +330,7 @@ static int parse_env_file_push(
|
||||
|
||||
if (streq(key, k)) {
|
||||
va_end(aq);
|
||||
free(*v);
|
||||
*v = value;
|
||||
free_and_replace(*v, value);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user