diff options
author | Wang Shilong <[email protected]> | 2013-03-25 11:08:23 +0000 |
---|---|---|
committer | Josef Bacik <[email protected]> | 2013-03-28 09:51:29 -0400 |
commit | a7975026ff9ddf91ba190ae2b71699dd156395e3 (patch) | |
tree | 6161c6ac3b7a0b2cbcc40b0126c69a261768b4ed /lib/cpu-notifier-error-inject.c | |
parent | fdf30d1c1b386e1b73116cc7e0fb14e962b763b0 (diff) |
Btrfs: fix double free in the btrfs_qgroup_account_ref()
The function btrfs_find_all_roots is responsible to allocate
memory for 'roots' and free it if errors happen,so the caller should not
free it again since the work has been done.
Besides,'tmp' is allocated after the function btrfs_find_all_roots,
so we can return directly if btrfs_find_all_roots() fails.
Signed-off-by: Wang Shilong <[email protected]>
Reviewed-by: Miao Xie <[email protected]>
Reviewed-by: Jan Schmidt <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions