free read_head, write_head