coverity: #1435603

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