Loading bsd-user/qemu.h +2 −2 Original line number Diff line number Diff line Loading @@ -358,7 +358,7 @@ static inline void *lock_user(int type, abi_ulong guest_addr, long len, int copy #ifdef DEBUG_REMAP { void *addr; addr = malloc(len); addr = g_malloc(len); if (copy) memcpy(addr, g2h(guest_addr), len); else Loading @@ -384,7 +384,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr, return; if (len > 0) memcpy(g2h(guest_addr), host_ptr, len); free(host_ptr); g_free(host_ptr); #endif } Loading Loading
bsd-user/qemu.h +2 −2 Original line number Diff line number Diff line Loading @@ -358,7 +358,7 @@ static inline void *lock_user(int type, abi_ulong guest_addr, long len, int copy #ifdef DEBUG_REMAP { void *addr; addr = malloc(len); addr = g_malloc(len); if (copy) memcpy(addr, g2h(guest_addr), len); else Loading @@ -384,7 +384,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr, return; if (len > 0) memcpy(g2h(guest_addr), host_ptr, len); free(host_ptr); g_free(host_ptr); #endif } Loading