Fix the bug of rmap_item leak.