Re: [PATCH] btrfs: ref-verify: Fix memleak in add_extent_data_ref

From: Josef Bacik
Date: Fri Oct 09 2020 - 10:30:13 EST


On 8/27/20 3:43 AM, Dinghao Liu wrote:
When lookup_root_entry() fails, ref should be freed
just like when insert_ref_entry() fails.

Signed-off-by: Dinghao Liu <dinghao.liu@xxxxxxxxxx>

Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>

Thanks,

Josef