storage/btrfs: add missing return

Fixes: Coverity 1461749 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 734138a3
...@@ -824,6 +824,7 @@ static int btrfs_lxc_rm_rf(const char *path) ...@@ -824,6 +824,7 @@ static int btrfs_lxc_rm_rf(const char *path)
ERROR("Out of memory"); ERROR("Out of memory");
free_btrfs_tree(tree); free_btrfs_tree(tree);
close(fd); close(fd);
return -ENOMEM;
} }
memcpy(name, tmp, name_len); memcpy(name, tmp, name_len);
......
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