mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 20:36:31 +02:00
mnemonics: fix misc STL containers leak
found by coverity
This commit is contained in:
parent
f6fcf0ef26
commit
19585d4914
@ -106,6 +106,12 @@ namespace Language
|
|||||||
trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
|
trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
|
||||||
unique_prefix_length = 4;
|
unique_prefix_length = 4;
|
||||||
}
|
}
|
||||||
|
virtual ~Base()
|
||||||
|
{
|
||||||
|
delete word_list;
|
||||||
|
delete word_map;
|
||||||
|
delete trimmed_word_map;
|
||||||
|
}
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns a pointer to the word list.
|
* \brief Returns a pointer to the word list.
|
||||||
* \return A pointer to the word list.
|
* \return A pointer to the word list.
|
||||||
|
Loading…
Reference in New Issue
Block a user