Fix memory leak in TKeyXML (ROOT-6149).

From Sergey Linev

(cherry picked from commit aafd9a15914f33390dc516aa1e8eb3b2c0ce5481)