Commit 91c908ee by Dwight Engen Committed by Stéphane Graber

coverity: free malloc'ed memory in error case

parent ab81cef0
......@@ -1203,6 +1203,8 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
return -ENOMEM;
}
if (do_rsync(odelta, ndelta) < 0) {
free(osrc);
free(ndelta);
ERROR("copying overlayfs delta");
return -1;
}
......
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