unit: check correct variable after strdup
This commit is contained in:
parent
1e1ddecf40
commit
f440e1bb8a
|
@ -2326,7 +2326,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
|
|||
char *s;
|
||||
|
||||
s = strdup(v);
|
||||
if (!v)
|
||||
if (!s)
|
||||
return -ENOMEM;
|
||||
|
||||
free(u->cgroup_path);
|
||||
|
|
Loading…
Reference in a new issue