Added a check to msFreeCharArray() to bail if the array itself is NULL.