fix a little memory error

Signed-off-by: xiehuc <xiehuc@gmail.com>