buaazp: fixed get img format memleak