Btrfs: free nce and nce_head on error in name_cache_insert
authorAlexander Block <ablock84@googlemail.com>
Wed, 1 Aug 2012 10:07:43 +0000 (12:07 +0200)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:18:56 +0000 (15:18 -0400)
commit5dc67d0ba915cda01ed3a980502945edf2c46b70
tree667aabdf4a246bd45de00b7d2ca298732d11f3c3
parent3e126f32f88095ad1bd01b3c451e52aa9094f45c
Btrfs: free nce and nce_head on error in name_cache_insert

Both were leaked in case of error.

Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
fs/btrfs/send.c