Skip to content

Commit a3a6dcd

Browse files
committed
thx codex for catching this
1 parent 37bd4f6 commit a3a6dcd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Modules/_remote_debugging/module.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ _remote_debugging_RemoteUnwinder___init___impl(RemoteUnwinderObject *self,
373373
}
374374
#endif
375375

376+
if (self->handle.pid != 0) {
377+
_Py_RemoteDebug_CleanupProcHandle(&self->handle);
378+
}
376379
self->native = native;
377380
self->gc = gc;
378381
self->opcodes = opcodes;

0 commit comments

Comments
 (0)