Add scoped_ptr_malloc.

Signed-off-by: TheCjw <thecjw@qq.com>