diff --git a/src/main.cpp b/src/main.cpp index 9c8669d..6a51c7a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see https://www.gnu.org/licenses. +#include #include #include #include -#include #include #include #include @@ -29,6 +29,7 @@ import privacyTracks; import encryption; import passwordManager; import fileShredder; +import mimallocSTL; import utils; constexpr auto MINIMUM_LIBGCRYPT_VERSION = "1.10.0"; @@ -130,7 +131,7 @@ int main(const int argc, const char **argv) { printColoredOutputln('b', "https://www.gnu.org/licenses/gpl.html."); // All the available tools - std::unordered_map > apps = { + miSTL::unordered_map > apps = { {1, passwordManager}, {2, encryptDecrypt}, {3, fileShredder}, diff --git a/src/utils/utils.cppm b/src/utils/utils.cppm index 83e015b..19e44b1 100644 --- a/src/utils/utils.cppm +++ b/src/utils/utils.cppm @@ -319,7 +319,7 @@ export { std::puts(prompt); if (char *input = ic_readline("")) { miSTL::string result{input}; - std::free(input); + ic_free(input); stripString(result); return result; }