Fix bug #66091 (memory leak in DateTime::createFromFormat())