freeing up client memory