mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
Merge pull request #2790 from ronnychevalier/rc/systemctl_missing_oom_check
systemctl: add missing OOM check
This commit is contained in:
commit
9f0cd100d0
@ -6167,7 +6167,12 @@ end:
|
||||
|
||||
/* Removing empty dropin dirs */
|
||||
if (!arg_full) {
|
||||
_cleanup_free_ char *dir = dirname_malloc(*original);
|
||||
_cleanup_free_ char *dir;
|
||||
|
||||
dir = dirname_malloc(*original);
|
||||
if (!dir)
|
||||
return log_oom();
|
||||
|
||||
/* no need to check if the dir is empty, rmdir
|
||||
* does nothing if it is not the case.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user