coverity: #1426029

fix use after free Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent bda407d0
...@@ -207,8 +207,8 @@ int ovl_clonepaths(struct lxc_storage *orig, struct lxc_storage *new, const char ...@@ -207,8 +207,8 @@ int ovl_clonepaths(struct lxc_storage *orig, struct lxc_storage *new, const char
odelta = strchr(nsrc, ':'); odelta = strchr(nsrc, ':');
if (!odelta) { if (!odelta) {
free(osrc);
ERROR("Failed to find \":\" in \"%s\"", nsrc); ERROR("Failed to find \":\" in \"%s\"", nsrc);
free(osrc);
return -22; return -22;
} }
......
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