Revision 7267c094 bitmap.h

b/bitmap.h
91 91
static inline unsigned long *bitmap_new(int nbits)
92 92
{
93 93
    int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
94
    return qemu_mallocz(len);
94
    return g_malloc0(len);
95 95
}
96 96

  
97 97
static inline void bitmap_zero(unsigned long *dst, int nbits)

Also available in: Unified diff