Fix memory leak in TKeyXML (ROOT-6149).

From Sergey Linev