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 636652d commit ec1d48dCopy full SHA for ec1d48d
Python/sysmodule.c
@@ -2515,12 +2515,12 @@ PyAPI_FUNC(int) PyUnstable_CopyPerfMapFile(const char* parent_filename) {
2515
return ret;
2516
}
2517
2518
- char buf[4096];
2519
- PyThread_acquire_lock(perf_map_state.map_lock, 1);
2520
FILE* from = fopen(parent_filename, "r");
2521
if (!from) {
2522
return -1;
2523
+ char buf[4096];
+ PyThread_acquire_lock(perf_map_state.map_lock, 1);
2524
int fflush_result = 0, result = 0;
2525
while (1) {
2526
size_t bytes_read = fread(buf, 1, sizeof(buf), from);
0 commit comments