mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00: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…
Reference in a new issue