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++)