mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Make CScript::clear() release its memory
This commit is contained in:
parent
b0875eb3fe
commit
fff7455ded
@ -730,6 +730,12 @@ public:
|
||||
{
|
||||
return CScriptID(Hash160(*this));
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
// The default std::vector::clear() does not release memory.
|
||||
std::vector<unsigned char>().swap(*this);
|
||||
}
|
||||
};
|
||||
|
||||
/** Compact serializer for scripts.
|
||||
|
Loading…
Reference in New Issue
Block a user