From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitmap.h') diff --git a/bitmap.h b/bitmap.h index efd5d3a..08755eb 100644 --- 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) -- cgit v1.1