Skip to content

Commit

Permalink
Merge pull request #2114 from Mab879/fix_2077
Browse files Browse the repository at this point in the history
Remove PyEval_InitThreads() from the project.
  • Loading branch information
jan-cerny authored Jun 4, 2024
2 parents ae325bf + 976b0cd commit 6f6f176
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions swig/openscap.i
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ char * sub_callback_wrapper(xccdf_subst_type_t type, const char *id, void *arg)

bool xccdf_policy_model_register_output_callback_py(struct xccdf_policy_model *model, PyObject *func, PyObject *usr) {
struct internal_usr *new_usrdata;
PyEval_InitThreads();
Py_INCREF(func);
Py_INCREF(usr);
new_usrdata = malloc(sizeof(struct internal_usr));
Expand All @@ -523,7 +522,6 @@ bool xccdf_policy_model_register_output_callback_py(struct xccdf_policy_model *m

bool xccdf_policy_model_register_start_callback_py(struct xccdf_policy_model *model, PyObject *func, PyObject *usr) {
struct internal_usr *new_usrdata;
PyEval_InitThreads();
Py_INCREF(func);
Py_INCREF(usr);
new_usrdata = malloc(sizeof(struct internal_usr));
Expand All @@ -537,7 +535,6 @@ bool xccdf_policy_model_register_start_callback_py(struct xccdf_policy_model *mo

int oval_agent_eval_system_py(oval_agent_session_t * asess, PyObject * func, PyObject *usr) {
struct internal_usr *new_usrdata;
PyEval_InitThreads();
Py_INCREF(func);
Py_INCREF(usr);
new_usrdata = malloc(sizeof(struct internal_usr));
Expand Down

0 comments on commit 6f6f176

Please sign in to comment.