fixed a potential bug in array allocation
fixed a potential bug in array allocation

yangf4/core,yangf4/core,YetAnotherMinion/core,YetAnotherMinion/core,YetAnotherMinion/core,yangf4/core,yangf4/core,YetAnotherMinion/core,YetAnotherMinion/core,yangf4/core