tree-wide: use free_and_replace() more

This commit is contained in:
David Tardon
2023-05-24 14:21:04 +02:00
parent 5dc0c21b31
commit d6f2cd671c
9 changed files with 15 additions and 30 deletions

View File

@@ -955,8 +955,7 @@ int free_and_strdup(char **p, const char *s) {
} else
t = NULL;
free(*p);
*p = t;
free_and_replace(*p, t);
return 1;
}