From: Christian Brauner Date: Wed, 9 Dec 2020 10:46:22 +0000 (+0100) Subject: storage/btrfs: add missing return X-Git-Tag: lxc-5.0.0~330^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9ad0309d80f26caa2e2f66027aa1888ded53ae;p=thirdparty%2Flxc.git storage/btrfs: add missing return Fixes: Coverity 1461749 Signed-off-by: Christian Brauner --- diff --git a/src/lxc/storage/btrfs.c b/src/lxc/storage/btrfs.c index 92a4a6def..0a28dc9c9 100644 --- a/src/lxc/storage/btrfs.c +++ b/src/lxc/storage/btrfs.c @@ -824,6 +824,7 @@ static int btrfs_lxc_rm_rf(const char *path) ERROR("Out of memory"); free_btrfs_tree(tree); close(fd); + return -ENOMEM; } memcpy(name, tmp, name_len);