Coverity: fix issues in aml-utils [1/1]

PD#SWPL-172616

Problem:
Some coverity issues has been found
1.uninit
2.invalid type
3.use after free

Solution:
1.Initialize variables before use
2.format with the correct format specifier
3.avoid double free

Verify:
coverity scan

Signed-off-by: kirk.wang <kirk.wang@amlogic.com>
Change-Id: Ibb959cd98165d085d56100b9ae8006e504436349
3 files changed