Three-run inning holds up in Giants' victory