Wozniacki withdraws with leg injury