Skip to content

Commit

Permalink
fix(iast): remove atexit handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufede committed Mar 1, 2024
1 parent d6724f6 commit 48add02
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ddtrace/appsec/_iast/_taint_tracking/_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,8 @@ static struct PyModuleDef ops = { PyModuleDef_HEAD_INIT,

PYBIND11_MODULE(_native, m)
{
// std::string iast_enabled = std::string(std::getenv("DD_IAST_ENABLED"));
// std::transform(
// iast_enabled.begin(), iast_enabled.end(), iast_enabled.begin(), [](unsigned char c) { return std::tolower(c);
// });
// if (iast_enabled != "true" && iast_enabled != "1")
// return;

initializer = make_unique<Initializer>();
initializer->create_context();
// Cleanup code to be run at the end of the interpreter lifetime:
// auto atexit = py::module::import("atexit");
// atexit.attr("register")(py::cpp_function([] { initializer.reset(); }));

m.doc() = "Native Python module";

Expand Down

0 comments on commit 48add02

Please sign in to comment.