tests: fix memory leak when configure output failed
tests: fix memory leak when configure output failed

andyLiuChina/libyami,stripes416/libyami,dspmeng/libyami,andyLiuChina/libyami,yizhouwei/libyami,lizhong1008/libyami,dspmeng/libyami,chivakker/libyami,andyLiuChina/libyami,dspmeng/libyami,YuJiankang/libyami,BtbN/libyami,andyLiuChina/libyami,halleyzhao/libyami,01org/libyami,BtbN/libyami,clearlylin/libyami,YuJiankang/libyami,lizhong1008/libyami,BtbN/libyami,lizhong1008/libyami,stripes416/libyami,BtbN/libyami,chivakker/libyami,seanvk/libyami,zhaobob/libyami,seanvk/libyami,clearlylin/libyami,yizhouwei/libyami,halleyzhao/libyami,uartie/libyami,chivakker/libyami,YuJiankang/libyami,zhaobob/libyami,01org/libyami,halleyzhao/libyami,clearlylin/libyami,seanvk/libyami,zhaobob/libyami,stripes416/libyami,yizhouwei/libyami,halleyzhao/libyami,uartie/libyami,uartie/libyami,01org/libyami