]> git.proxmox.com Git - qemu.git/commit
sparc: use g_strdup in place of unchecked strdup
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:45 +0000 (13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:36 +0000 (07:58 -0500)
commitbfad67399bcca8c1afbbc93593d365044d92f7c6
tree7eb73027506eca871ab9117a9103d4906757525c
parenta5cf8262e4eb9c4646434e2c6211ef8608db3233
sparc: use g_strdup in place of unchecked strdup

This avoids a NULL-deref upon strdup failure.
Also update matching free to g_free.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-sparc/cpu.c