aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2019-12-06 09:37:18 -0500
committerDavid Sterba <[email protected]>2019-12-13 14:10:45 +0100
commitca1aa2818a53875cfdd175fb5e9a2984e997cce9 (patch)
tree869a6323527659ec6525bd572a1ba3c3c4da8123 /lib/netdev-notifier-error-inject.c
parent9bc574de590510eff899c3ca8dbaf013566b5efe (diff)
btrfs: do not leak reloc root if we fail to read the fs root
If we fail to read the fs root corresponding with a reloc root we'll just break out and free the reloc roots. But we remove our current reloc_root from this list higher up, which means we'll leak this reloc_root. Fix this by adding ourselves back to the reloc_roots list so we are properly cleaned up. CC: [email protected] # 4.4+ Reviewed-by: Filipe Manana <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions