]> git.proxmox.com Git - qemu.git/blobdiff - hw/applesmc.c
Use glib memory allocation and free functions
[qemu.git] / hw / applesmc.c
index 23ed3287b454a7831d6bc3e17b1d01974821bf58..c47b592747a49e3862cb4edcd13e4c9017506fcd 100644 (file)
@@ -170,7 +170,7 @@ static void applesmc_add_key(struct AppleSMCStatus *s, const char *key,
 {
     struct AppleSMCData *def;
 
-    def = qemu_mallocz(sizeof(struct AppleSMCData));
+    def = g_malloc0(sizeof(struct AppleSMCData));
     def->key = key;
     def->len = len;
     def->data = data;