The law firm that leaked celebrated author J.K. Rowling's pen name is paying for its mistake.

Last month, London-based Russells, which has done work for Rowling, admitted that one of its partners, Chris Gossage, told his wife's best friend that the “Harry Potter” creator was the true author behind “The Cuckoo's Calling,” a detective story that was billed as the debut novel from Robert Galbraith. The wife's friend then used Twitter to tip a Sunday Times columnist about the news.

Rowling sued Gossage and his wife's friend, saying she was “very angry” that Russells had broken her trust. Russells apparently took her disappointment to heart. The firm recently announced that it would reimburse Rowling's legal costs and make a “substantial” donation to The Soldiers' Charity, which helps former military personnel and their families. Rowling also announced that she would donate all royalties from the book for the next three years to the charity.