We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9096375 commit 6516356Copy full SHA for 6516356
1 file changed
Python/remote_debugging.c
@@ -360,12 +360,12 @@ search_elf_file_for_section(
360
}
361
362
exit:
363
- if (fd >= 0 && close(fd) != 0) {
364
- PyErr_SetFromErrno(PyExc_OSError);
365
- }
366
if (file_memory != NULL) {
367
munmap(file_memory, file_stats.st_size);
368
+ if (fd >= 0 && close(fd) != 0) {
+ PyErr_SetFromErrno(PyExc_OSError);
+ }
369
return result;
370
371
0 commit comments