Fix possible uninitialized info field. (coverity-1225802)
Fix unlikely but possible memory leak. (coverity-1225800,1225801)
Fix possible index out-of-bounds. (coverity-1225798)