==21734== Invalid read of size 8 ==21734== at 0xD390F88: wcscmp (in /usr/lib/libc-2.17.so) ==21734== by 0xC949E63: std::moneypunct::~moneypunct() (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0xC949EE8: std::moneypunct::~moneypunct() (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0xC93F064: std::locale::_Impl::~_Impl() (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0xC93F19C: std::locale::~locale() (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0x635421: std::string ThousandSeparate(unsigned long long, int) (basic_ios.h:274) ==21734== by 0x634E8C: FileMon::CheckFile(std::string, unsigned long long) (FileMonitor.cpp:103) ==21734== by 0x585B82: CWII_IPC_HLE_Device_di::ExecuteCommand(unsigned int, unsigned int, unsigned int, unsigned int) (WII_IPC_HLE_Device_DI.cpp:221) ==21734== by 0x585D6B: CWII_IPC_HLE_Device_di::IOCtl(unsigned int) (WII_IPC_HLE_Device_DI.cpp:94) ==21734== by 0x583864: WII_IPC_HLE_Interface::ExecuteCommand(unsigned int) (WII_IPC_HLE.cpp:479) ==21734== by 0x583C64: WII_IPC_HLE_Interface::Update() (WII_IPC_HLE.cpp:548) ==21734== by 0x56DF47: SystemTimers::IPC_HLE_UpdateCallback(unsigned long long, int) (SystemTimers.cpp:173) ==21734== Address 0x185bd498 is 0 bytes after a block of size 8 alloc'd ==21734== at 0x54FE307: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==21734== by 0xC9496A9: std::moneypunct::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0xC9415E3: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0xC942039: std::locale::locale(char const*) (in /usr/lib/libstdc++.so.6.0.17) ==21734== by 0x6352BF: std::string ThousandSeparate(unsigned long long, int) (StringUtil.h:57) ==21734== by 0x634E8C: FileMon::CheckFile(std::string, unsigned long long) (FileMonitor.cpp:103) ==21734== by 0x585B82: CWII_IPC_HLE_Device_di::ExecuteCommand(unsigned int, unsigned int, unsigned int, unsigned int) (WII_IPC_HLE_Device_DI.cpp:221) ==21734== by 0x585D6B: CWII_IPC_HLE_Device_di::IOCtl(unsigned int) (WII_IPC_HLE_Device_DI.cpp:94) ==21734== by 0x583864: WII_IPC_HLE_Interface::ExecuteCommand(unsigned int) (WII_IPC_HLE.cpp:479) ==21734== by 0x583C64: WII_IPC_HLE_Interface::Update() (WII_IPC_HLE.cpp:548) ==21734== by 0x56DF47: SystemTimers::IPC_HLE_UpdateCallback(unsigned long long, int) (SystemTimers.cpp:173) ==21734== by 0x51A704: CoreTiming::Advance() (CoreTiming.cpp:486)