We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125513a commit 10630e8Copy full SHA for 10630e8
1 file changed
Python/sysmodule.c
@@ -2289,8 +2289,9 @@ PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(
2289
) {
2290
#ifndef MS_WINDOWS
2291
if (perf_map_state.perf_map == NULL) {
2292
- if(PyUnstable_PerfMapState_Init() != 0){
2293
- return -1;
+ int ret = PyUnstable_PerfMapState_Init();
+ if(ret != 0){
2294
+ return ret;
2295
}
2296
2297
PyThread_acquire_lock(perf_map_state.map_lock, 1);
0 commit comments