Depends on the contract, but if it's just blindly dividing the deposit value by 2, it's likely using the
DIVIDE OPCODE of the Ethereum Virtual Machine, which does integer division, which means all fractions get truncated.
So, if someone sent in one wei (smallest unit of Ether), 1/2 = 0, so both addresses would be sent zero wei, and the one deposited wei would end up owned by the contract (and would stay there unless the contract has some function to spend its own funds, or means to
selfdestruct and send those funds to some owner).
This would also happen for any odd number of wei; sending in 1001 wei would result in: 1001/2 = 500. Each address would be sent 500 wei, leaving one remainder owned by the contract.