| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1074,7 +1074,7 @@ subprocess_fork_exec_impl(PyObject *module, PyObject *process_args, | |||
| 1074 | 1074 | #endif /* HAVE_SETREUID */ | |
| 1075 | 1075 | } | |
| 1076 | 1076 | ||
| 1077 | - c_fds_to_keep = PyMem_RawMalloc(fds_to_keep_len * sizeof(int)); | ||
| 1077 | + c_fds_to_keep = PyMem_Malloc(fds_to_keep_len * sizeof(int)); | ||
| 1078 | 1078 | if (c_fds_to_keep == NULL) { | |
| 1079 | 1079 | PyErr_SetString(PyExc_MemoryError, "failed to malloc c_fds_to_keep"); | |
| 1080 | 1080 | goto cleanup; | |
@@ -1157,7 +1157,7 @@ subprocess_fork_exec_impl(PyObject *module, PyObject *process_args, | |||
| 1157 | 1157 | ||
| 1158 | 1158 | cleanup: | |
| 1159 | 1159 | if (c_fds_to_keep != NULL) { | |
| 1160 | - PyMem_RawFree(c_fds_to_keep); | ||
| 1160 | + PyMem_Free(c_fds_to_keep); | ||
| 1161 | 1161 | } | |
| 1162 | 1162 | ||
| 1163 | 1163 | if (saved_errno != 0) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments