mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
chase-symlinks: add missing OOM check
This commit is contained in:
@@ -203,6 +203,8 @@ int chase_symlinks(
|
||||
todo = buffer;
|
||||
done = strdup("/");
|
||||
}
|
||||
if (!done)
|
||||
return -ENOMEM;
|
||||
|
||||
for (;;) {
|
||||
_cleanup_free_ char *first = NULL;
|
||||
|
||||
Reference in New Issue
Block a user