revision: remove the unused flag leak_pending