avoid leaking on parital allocation