hw/9pfs: Fix unchecked strdup() by converting to g_strdup()
commitd3f8e138c23ba082f87c96634d06b978473c1e9b
authorMarkus Armbruster <armbru@redhat.com>
Tue, 22 Jan 2013 10:07:58 +0000 (22 11:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Jan 2013 10:14:46 +0000 (30 11:14 +0100)
tree349324b5623a40e7f224dd1fb211b6536fb5f777
parentc64f50d1e250879611e6f328e2c4fb18c8a4ab0c
hw/9pfs: Fix unchecked strdup() by converting to g_strdup()

Note: the allocation in virtio_9p_init() is still leaked.  To be fixed
in a followup commit.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/9pfs/virtio-9p-device.c
hw/9pfs/virtio-9p-local.c