Remove leaking code with boost counterpart.