Is there any rules about using SG_MALLOC and new T[] ?
May be I will change it back to the new T[].