load-fragment: use free_and_replace()

This commit is contained in:
Yu Watanabe
2018-05-31 13:27:06 +09:00
parent 3c381a671f
commit 17ee3d72da
+1 -2
View File
@@ -4594,8 +4594,7 @@ static int open_follow(char **filename, FILE **_f, Set *names, char **_final) {
if (r < 0)
return r;
free(*filename);
*filename = target;
free_and_replace(*filename, target);
}
f = fdopen(fd, "re");