We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6594c0 commit c3a6722Copy full SHA for c3a6722
src/net.cpp
@@ -121,10 +121,7 @@ std::string strSubVersion;
121
122
size_t CSerializedNetMsg::GetMemoryUsage() const noexcept
123
{
124
- // Don't count the dynamic memory used for the m_type string, by assuming it fits in the
125
- // "small string" optimization area (which stores data inside the object itself, up to some
126
- // size; 15 bytes in modern libstdc++).
127
- return sizeof(*this) + memusage::DynamicUsage(data);
+ return sizeof(*this) + memusage::DynamicUsage(m_type) + memusage::DynamicUsage(data);
128
}
129
130
void CConnman::AddAddrFetch(const std::string& strDest)
0 commit comments