mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 13:09:24 +00:00
mnemonics: fix misc STL containers leak
found by coverity
This commit is contained in:
parent
f6fcf0ef26
commit
19585d4914
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue