]> git.proxmox.com Git - qemu.git/blobdiff - bitmap.h
Use glib memory allocation and free functions
[qemu.git] / bitmap.h
index efd5d3a1ed202c4113e257c1d0dd8ff86063dc62..08755eba11b291738b8b721c631ee2b5f1f2b68e 100644 (file)
--- a/bitmap.h
+++ b/bitmap.h
@@ -91,7 +91,7 @@ int slow_bitmap_intersects(const unsigned long *bitmap1,
 static inline unsigned long *bitmap_new(int nbits)
 {
     int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
-    return qemu_mallocz(len);
+    return g_malloc0(len);
 }
 
 static inline void bitmap_zero(unsigned long *dst, int nbits)