fix memory leakage of variable token

Signed-off-by: Cong Ding <dinggnu@gmail.com>
fix memory leakage of variable p

Signed-off-by: Cong Ding <dinggnu@gmail.com>
remove trailing blank spaces

Signed-off-by: Cong Ding <dinggnu@gmail.com>