add debug info.
fix sample memory leak.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>