aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2014-08-17 15:09:21 -0500
committerChris Mason <[email protected]>2014-08-21 07:55:29 -0700
commita3c108950d8e0bfcf48856cc159956022a7ad925 (patch)
treee158d7b90824bea47a772c2386487aec62a2de3b /net/lapb/lapb_subr.c
parent51f395ad4058883e4273b02fdebe98072dbdc0d2 (diff)
btrfs: fix leak in qgroup_subtree_accounting() error path
Coverity pointed this out; in the newly added qgroup_subtree_accounting(), if btrfs_find_all_roots() returns an error, we leak at least the parents pointer, and possibly the roots pointer, depending on what failure occurs. If btrfs_find_all_roots() returns an error, we need to free up all allocations before we return. "roots" is initialized to NULL, so it should be safe to free it unconditionally (ulist_free() handles that case). Cc: Mark Fasheh <[email protected]> Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Mark Fasheh <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions