OSDN Git Service

vhost-user-scsi: use glib allocation
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Aug 2017 18:32:04 +0000 (20:32 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Oct 2017 21:31:09 +0000 (23:31 +0200)
commit3d9ad8be3d83519304bf8d935913567ce40a25b8
tree6800940764b6f1be59cec64b4cda508877b78fa4
parent8c36ed6e0275613e2c3191d251e5ff96eb4e8727
vhost-user-scsi: use glib allocation

Use g_new/g_free instead of plain malloc. This simplify a bit memory
handling since glib will abort if it cannot allocate.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
contrib/vhost-user-scsi/vhost-user-scsi.c