tree-wide: use free_and_strdup_warn()

This commit is contained in:
Yu Watanabe
2021-02-12 03:05:08 +09:00
parent 7fb1d980af
commit b3f9c17a6b
12 changed files with 37 additions and 62 deletions
+1 -4
View File
@@ -210,10 +210,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i
}
log_info("Selected '%s'.", l[u-1]);
if (free_and_strdup(ret, l[u-1]) < 0)
return log_oom();
return 0;
return free_and_strdup_warn(ret, l[u-1]);
}
if (!is_valid(p)) {