fix: release unused memory in CNetMsgMaker::Make()

This commit is contained in:
UdjinM6 2024-08-27 20:45:36 +03:00
parent f675fcbd25
commit c2c4b2b794
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -21,6 +21,7 @@ public:
msg.m_type = std::move(msg_type);
msg.data.reserve(4 * 1024);
CVectorWriter{ SER_NETWORK, nFlags | nVersion, msg.data, 0, std::forward<Args>(args)... };
msg.data.shrink_to_fit();
return msg;
}