coverity: #1435603

Resource leak Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 0c5d1d8f
......@@ -533,6 +533,7 @@ static int btrfs_do_destroy_subvol(const char *path)
retlen = strlcpy(args.name, p+1, BTRFS_SUBVOL_NAME_MAX);
if (retlen >= BTRFS_SUBVOL_NAME_MAX) {
free(newfull);
close(fd);
return -E2BIG;
}
......
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