mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: release unused memory in CNetMsgMaker::Make()
This commit is contained in:
parent
f675fcbd25
commit
c2c4b2b794
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user