cortex_a: fix a potential memory leak in cortex_a_target_create()