mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 05:03:17 +00:00
coverity: #1435603
Resource leak Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
42cc40833c
commit
eb091d0094
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user