fix memory leak (#841)
fix memory leak (#841)

* fix memory leak when xml file has 'consumer' tag but does not have 'profile' tag

* style:  fix the indentation

Co-authored-by: songzhuo <074df0c79365ed4412f1d1b2650083f2b728974d@bluepulse.cn>
mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt