World number one Ashleigh Barty suffered a meltdown on the brink of victory but regathered herself to fend off compatriot Daria Gavrilova 6-1, 7-6(7) and reach the third round of the Australian Open.
Barty, who came onto centre court with her left thigh heavily strapped, served for the match at 5-2 but was broken twice in a hail of unforced errors, allowing wildcard Gavrilova to drag the contest deep into a tiebreak.
Fortunately for Barty, Gavrilova reprieved her twice with unforced errors on set point and then coughed up another on match point to surrender on a steamy day at Rod Laver Arena.
Barty will meet the winner of Ekaterina Alexandrova and Barbora Krejcikova for a place in the fourth round.


F1's Bahrain and Saudi races set to be cancelled amid ongoing regional tensions
Georgia caught in doping scandal as players allegedly swapped urine samples
F1 leader Russell puts Mercedes on pole for China sprint race
Everton's Moyes defends 'brilliant' Arsenal amid criticism of their playing style
Alcaraz sets up Medvedev Indian Wells semi-final, Sabalenka advances
