Obviously a disappointing end for Maria.
She did the right thing in retiring from the match. It wasn't worth trying to keep playing through it, especially with the Australian Open around the corner. Hopefully she will be healthy for the Australian Open.