Changed malloc to g_malloc, free to g_free in bsd-user/qemu.h