On Wed, Aug 17, 2011 at 7:07 PM, Avi Kivity <a...@redhat.com> wrote: > On 08/17/2011 10:23 AM, Blue Swirl wrote: >> >> > >> >> + } >> >> + >> >> + ops = g_new(MemoryRegionOps, 1); >> > >> > >> > g_new0(), we rely on initialized memory here >> >> Please avoid g_new/g_malloc until they are taught to use qemu_malloc >> or was it the other way around. >> > > Why?
http://lists.nongnu.org/archive/html/qemu-devel/2011-07/msg02620.html