Skip to content

Commit

Permalink
storage/btrfs: add missing return
Browse files Browse the repository at this point in the history
Fixes: Coverity 1461749
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 10, 2020
1 parent 25619b9 commit ae9ad03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/storage/btrfs.c
Expand Up @@ -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);
Expand Down

0 comments on commit ae9ad03

Please sign in to comment.