From ae9ad0309d80f26caa2e2f66027aa1888ded53ae Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 9 Dec 2020 11:46:22 +0100 Subject: [PATCH] storage/btrfs: add missing return Fixes: Coverity 1461749 Signed-off-by: Christian Brauner --- src/lxc/storage/btrfs.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.2