allocate / free need use glibs's function. Description of problem: https://gitlab.com/qemu-project/qemu/-/blob/master/hw/core/machine.c?ref_type=heads#L982 use g_free to free config,because it is allocated by g_malloc0 on windows,if use crt's free && glib's(DLL) g_malloc0 ,will crash.