From: Christian Brauner Date: Tue, 15 May 2018 10:34:24 +0000 (+0200) Subject: coverity: #1435603 X-Git-Tag: lxc-2.0.10~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea8ed0d6c83910781f4b3aee5a585c0c6c12b37;p=thirdparty%2Flxc.git coverity: #1435603 Resource leak Signed-off-by: Christian Brauner --- diff --git a/src/lxc/storage/btrfs.c b/src/lxc/storage/btrfs.c index 592ead91c..8b5274bed 100644 --- a/src/lxc/storage/btrfs.c +++ b/src/lxc/storage/btrfs.c @@ -455,6 +455,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; }