However, if he was not being held under arrest the officer cannot keep him there and deny his request to leave.