- Fix realloc bug

Signed-off-by: Chen Yanjun <chenyanjun@xmlailuo.com>