C++ Google协议缓冲区重复字段内存泄漏

C++ Google协议缓冲区重复字段内存泄漏,c++,visual-studio,memory-leaks,C++,Visual Studio,Memory Leaks,我正在运行Deleaker并获得以下信息: ntdll.dll!RtlCreateActivationContext + 2769 bytes 000000007719fac0 TestParserLibrary.exe!_heap_alloc_base Line 58 + 0x5d bytes 000000013fb91b6d TestParserLibrary.exe!_heap_alloc_dbg_impl Line 431 + 0x27b bytes 000000013fb6b2eb T

我正在运行Deleaker并获得以下信息:

ntdll.dll!RtlCreateActivationContext + 2769 bytes 000000007719fac0
TestParserLibrary.exe!_heap_alloc_base Line 58 + 0x5d bytes 000000013fb91b6d
TestParserLibrary.exe!_heap_alloc_dbg_impl Line 431 + 0x27b bytes 000000013fb6b2eb
TestParserLibrary.exe!_nh_malloc_dbg_impl Line 239 + 0x39 bytes 000000013fb6b8c9
TestParserLibrary.exe!_nh_malloc_dbg Line 302 + 0x49 bytes 000000013fb6b859
TestParserLibrary.exe!malloc Line 56 + 0x2a bytes 000000013fb8312a
TestParserLibrary.exe!operator new Line 59 + 0x13 bytes 000000013fb61ec3
TestParserLibrary.exe!google::protobuf::internal::InitializeDefaultRepeatedFields Line 1630 + 0x2e bytes 000000013faf252e
TestParserLibrary.exe!google::protobuf::internal::StaticDefaultRepeatedFieldsInitializer::StaticDefaultRepeatedFieldsInitializer Line 1624 + 0x23 bytes 000000013faf7993
TestParserLibrary.exe!google::protobuf::internal::`dynamic initializer for 'static_repeated_fields_initializer'' Line 1626 + 0x21 bytes 000000013f8f78b1
TestParserLibrary.exe!_initterm Line 955 + 0x2c bytes 000000013fb8431c
TestParserLibrary.exe!_cinit Line 321 + 0x74 bytes 000000013fb83f34
TestParserLibrary.exe!__tmainCRTStartup Line 237 + 0xb1 bytes 000000013fb6eb81
TestParserLibrary.exe!wmainCRTStartup Line 165 + 0xe bytes 000000013fb6ecfe
kernel32.dll!GetFileSizeEx + 51 bytes 00000000770459cd
ntdll.dll!memcpy + 38401 bytes 000000007717b981
这似乎是协议缓冲区消息中重复字段的问题。我知道这可能是由我的一些代码触发的,但我不知道原因是什么


以前有人见过吗?

您使用的protobuf版本是什么?刚刚找到类似的报告:您使用的protobuf版本是什么?刚刚找到类似的报告: