Skip to content

Commit

Permalink
More mimalloc integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dr8co committed Jun 25, 2024
1 parent 60063c2 commit b5d9e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mimalloc-override.h>
#include <csignal>
#include <sodium.h>
#include <gcrypt.h>
#include <unordered_map>
#include <format>
#include <functional>
#include <unistd.h>
Expand All @@ -29,6 +29,7 @@ import privacyTracks;
import encryption;
import passwordManager;
import fileShredder;
import mimallocSTL;
import utils;

constexpr auto MINIMUM_LIBGCRYPT_VERSION = "1.10.0";
Expand Down Expand Up @@ -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<int, std::function<void()> > apps = {
miSTL::unordered_map<int, std::function<void()> > apps = {
{1, passwordManager},
{2, encryptDecrypt},
{3, fileShredder},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5d9e4e

Please sign in to comment.