accept patch from Jumpei Ogawa to fix memory leak.
this issue also fixed to btrfs git
http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/commit/?id=1cce8d72f2d0d00bd5c9322b16176de0fb56aff6