xmap: fixed a memleak
torrent: fixed a memleak