target-sparc: Fix use of g_new0 / g_free