core: fix OOM check

Follow-up for 84c01612de

CID#1533114
This commit is contained in:
Luca Boccassi
2024-01-04 12:41:31 +01:00
parent 6d5743c411
commit cae58298dd
+1 -1
View File
@@ -216,7 +216,7 @@ int cgroup_context_add_io_device_limit_dup(CGroupContext *c, CGroupIODeviceLimit
assert(l);
n = new0(CGroupIODeviceLimit, 1);
if (!l)
if (!n)
return -ENOMEM;
n->path = strdup(l->path);