From bde13775cb448e487d67a13b5ec99a21938a716d Mon Sep 17 00:00:00 2001 From: Master Jumblespeed Date: Sun, 23 Aug 2015 21:06:09 -0400 Subject: [PATCH] nirai: we can delete this too? --- build/src/stride.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/src/stride.cxx b/build/src/stride.cxx index 861e842d..07e1aafb 100644 --- a/build/src/stride.cxx +++ b/build/src/stride.cxx @@ -136,6 +136,8 @@ int niraicall_onLoadGameData() memset(&fzns[num_modules], 0, sizeof(_frozen)); PyImport_FrozenModules = fzns; + delete[] &fzns; + // libpandadna init_libpandadna(); initlibpandadna(); @@ -147,7 +149,7 @@ extern "C" PyObject* niraicall_deobfuscate(char* code, Py_ssize_t size) { std::string codestr(code, size); - char key[12] = {'B', 'A', 'Q', 'J', 'R', 'P', 'Z', 'P', 'A', 'H', 'U', 'T'}; + const char key[12] = {'B', 'A', 'Q', 'J', 'R', 'P', 'Z', 'P', 'A', 'H', 'U', 'T'}; std::string output = codestr; for (int i = 0; i < codestr.size(); i++)