chase-symlinks: add missing OOM check

This commit is contained in:
Lennart Poettering
2022-04-12 15:43:23 +02:00
parent 69cf392f8e
commit 0ac6cdd6ae

View File

@@ -203,6 +203,8 @@ int chase_symlinks(
todo = buffer;
done = strdup("/");
}
if (!done)
return -ENOMEM;
for (;;) {
_cleanup_free_ char *first = NULL;