Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc74251d

Browse files
authored
Merge branch 'main' into fix-132413
2 parents19326d4 +014c7f9 commitc74251d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎Modules/_testexternalinspection.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,10 @@ search_map_for_section(pid_t pid, const char* secname, const char* map)
400400
}
401401

402402
exit:
403-
if (close(fd)!=0) {
403+
if (fd >=0&&close(fd)!=0) {
404+
PyObject*exc=PyErr_GetRaisedException();
404405
PyErr_SetFromErrno(PyExc_OSError);
406+
_PyErr_ChainExceptions1(exc);
405407
}
406408
if (file_memory!=NULL) {
407409
munmap(file_memory,file_stats.st_size);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp