coverity: #1425922

free allocated memory Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 5f6c6482
......@@ -1721,6 +1721,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type)
path2 = must_make_path(controllerpath, h->base_cgroup, d->container_cgroup, NULL);
if (mkdir_p(path2, 0755) < 0) {
free(controllerpath);
free(path2);
goto bad;
}
......
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