Commit 378a5729 by Serge Hallyn

address coverity-found memleak of data on error case

parent 0291b5fa
......@@ -2121,6 +2121,7 @@ static inline bool cgfs_init(struct lxc_handler *handler)
if (!d->meta) {
ERROR("cgroupfs failed to detect cgroup metadata");
free(d);
return false;
}
handler->cgroup_info->data = d;
......
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