aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/language_base.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-10 12:39:25 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-10 12:51:36 +0000
commit19585d49142cdf0eb6b82bd4c3c6d813da12c35c (patch)
tree6cbdeb4005d2e21917a686cfb65541384c9829f0 /src/mnemonics/language_base.h
parentoaes_lib: fix a leak on OOM error path (diff)
downloadmonero-19585d49142cdf0eb6b82bd4c3c6d813da12c35c.tar.xz
mnemonics: fix misc STL containers leak
found by coverity
Diffstat (limited to 'src/mnemonics/language_base.h')
-rw-r--r--src/mnemonics/language_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mnemonics/language_base.h b/src/mnemonics/language_base.h
index 9a60f8a53..e0297c847 100644
--- a/src/mnemonics/language_base.h
+++ b/src/mnemonics/language_base.h
@@ -106,6 +106,12 @@ namespace Language
trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
unique_prefix_length = 4;
}
+ virtual ~Base()
+ {
+ delete word_list;
+ delete word_map;
+ delete trimmed_word_map;
+ }
/*!
* \brief Returns a pointer to the word list.
* \return A pointer to the word list.