]> Git Repo - linux.git/commit - fs/btrfs/tree-log.c
btrfs: Fix memory leakage in the tree-log.c
authorGeyslan G. Bem <[email protected]>
Fri, 11 Oct 2013 18:35:45 +0000 (15:35 -0300)
committerChris Mason <[email protected]>
Tue, 12 Nov 2013 03:00:11 +0000 (22:00 -0500)
commit03b2f08b5f96db5d07dba54ae008e9fdf1396e05
tree36d9e492b02fc0f6debab21632a021e26206db01
parent498456d33e2ee5150f045e604e4531b088083e7a
btrfs: Fix memory leakage in the tree-log.c

In add_inode_ref() function:

Initializes local pointers.

Reduces the logical condition with the __add_inode_ref() return
value by using only one 'goto out'.

Centralizes the exiting, ensuring the freeing of all used memory.

Signed-off-by: Geyslan G. Bem <[email protected]>
Reviewed-by: Stefan Behrens <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/tree-log.c
This page took 0.048829 seconds and 4 git commands to generate.