WEST LAFAYETTE, Ind. -- A leadoff walk in the 12th inning led to the game-winning run as Purdue baseball lost to Michigan, 7-6, Friday evening in the longest game in the short history of Alexander Field.

After initially trying to bunt, Carmen Benedetti doubled down the right field line in the top of the 12th inning to plate Cole Martin from first base. Brandon Krieg singled with one out, stole second and reached third base in the bottom of the frame, but Sean McHugh flew out to left center to end the game.

The Boilermakers (8-25, 3-7 Big Ten) played in their fourth extra-inning affair in the last six games and sixth of 2014 overall. It was the Wolverines' seventh extra-inning game, improving to 2-5 in games longer than nine innings. Purdue fell to 2-4 in extra-inning contests and 4-9 in one-run games. Eight of the Boilers' last nine games have been decided by one run or gone to extra innings.

Purdue rallied from deficits of 4-1 and 6-3, tying the game with three runs in the bottom of the seventh. But the Boilers' committed a season-high five errors, leading to three unearned runs. Michigan (17-20-1, 7-6 Big Ten) also had a big two-out error in the seventh that allowed the tying run to score.

Purdue pitchers issued eight walks on the night vs. the Wolverines' two. Six of the eight walks led to runs.

Matt Gibbs worked five scoreless innings of relief, striking out a career-high six in his longest outing as a Boilermaker. The junior has worked 14 consecutive scoreless innings over his last four appearances. He struck out Michigan cleanup hitter Kyle Jusick looking with the bases loaded to end the top of the 11th, pitching over a two-out error.

Brandon Krieg continued his hot hitting with a 3-for-5 night, scoring twice and driving in a pair of runs. Steve Maniago was 2-for-4 with a double and three runs scored in the nine hole of the lineup.

Jackson Glines and Benedetti each had three this for the Wolverines. Glines doubled in his first two at-bats, driving in a pair in the top of the third after Purdue starter Jordan Minch issued consecutive two-out walks.

Brett Adcock (5-2) struck out six over four innings of one-hit relief. He retired 12 of the 13 batters he faced and pitched over a leadoff single from Cody Strong in the bottom of the 10th.

McHugh's opposite-field double down the right field line plated Maniago and Krieg in the bottom of the sixth to make it one-run game. But consecutive walks to begin the seventh followed by Matthew McHugh's third error of the night at first base gave Michigan its three-run lead back. Matthew McHugh made his start at first base as a Boilermaker after regular first baseman Kyle Wood was suspended for a violation of team rules. Wood won't be in uniform this weekend.

With runners on first and second in the bottom of the seventh, Krieg singled through the right side to score Jeff Evak. Maniago was safe at third on the play after Michigan third baseman Hector Gutierrez dropped the ball as he went to apply to the tag on Maniago. Krieg took second on the play. Maniago scored on a wild pitch and Krieg came home as the tying run when Gutierrez let a ball hit by Sean McHugh get through him.

Michigan used a suicide squeeze bunt to score a run in the fourth inning, taking advantage of another leadoff walk. Consecutive two-out hits, an opposite-field double from Maniago and an RBI single from Krieg, had made it 2-1 Michigan in the bottom of the third.

Minch tied his season high with seven strikeouts. He only allowed five hits over six innings, but all three walks he issued came around to score. Even after seeing his pitch count elevated quickly by numerous foul balls hit by Wolverines' hitters, Minch ended up pitching deeper into the game than Michigan starter Evan Hill. The lefty was lifted with one out in the sixth inning after Sean McHugh's two-run double. He had surrendered only one run on four hits while striking out five entering the bottom of the sixth.