]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/tc58128.c
Use glib memory allocation and free functions
[mirror_qemu.git] / hw / tc58128.c
index 61b99dd4daa9516e080219041b13725e1e7c5f35..ee3ecad51abb014d347102e26d7dfb6c35129868 100644 (file)
@@ -30,7 +30,7 @@ static void init_dev(tc58128_dev * dev, const char *filename)
     int ret, blocks;
 
     dev->state = WAIT;
-    dev->flash_contents = qemu_mallocz(FLASH_SIZE);
+    dev->flash_contents = g_malloc0(FLASH_SIZE);
     memset(dev->flash_contents, 0xff, FLASH_SIZE);
     if (!dev->flash_contents) {
        fprintf(stderr, "could not alloc memory for flash\n");