finish malloc

Signed-off-by: zhouyou <zhouyoug@gmail.com>