Re: [Qemu-devel] [PATCH 07/27] vhost-user-scsi: use glib allocation

2017-08-23 Thread Philippe Mathieu-Daudé
On 08/23/2017 01:19 PM, Marc-André Lureau wrote: 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 --- contrib/vhost-user-scsi/vhost-user-scsi.c | 35 --- 1 f

[Qemu-devel] [PATCH 07/27] vhost-user-scsi: use glib allocation

2017-08-23 Thread Marc-André Lureau
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 --- contrib/vhost-user-scsi/vhost-user-scsi.c | 35 --- 1 file changed, 9 insertions(+), 26 deletions(-) diff -