[allocation leave code update]