Commit d90cc2e6 by Serge Hallyn Committed by Stéphane Graber

coverity: avoid null pointer dereference in cgmanager

parent 584e3917
...@@ -766,7 +766,7 @@ static char *try_get_abs_cgroup(const char *name, const char *lxcpath, ...@@ -766,7 +766,7 @@ static char *try_get_abs_cgroup(const char *name, const char *lxcpath,
NihError *nerr; NihError *nerr;
nerr = nih_error_get(); nerr = nih_error_get();
nih_free(nerr); nih_free(nerr);
} } else
prune_init_scope(cgroup); prune_init_scope(cgroup);
return cgroup; return cgroup;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment