]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - linux-user/syscall.c
Use g_new() & friends where that makes obvious sense
[thirdparty/qemu.git] / linux-user / syscall.c
index b9b18a7eaffbd954845e153972397b90678eec4f..75ed71eb461d97c0140c4ada649fbb4462626acb 100644 (file)
@@ -5076,7 +5076,7 @@ do_ioctl_usbdevfs_submiturb(const IOCTLEntry *ie, uint8_t *buf_temp,
     target_size = thunk_type_size(arg_type, THUNK_TARGET);
 
     /* construct host copy of urb and metadata */
-    lurb = g_try_malloc0(sizeof(struct live_urb));
+    lurb = g_try_new0(struct live_urb, 1);
     if (!lurb) {
         return -TARGET_ENOMEM;
     }