mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
This commit is contained in:
parent
437a0e60ba
commit
3bbc62e9c2
18 changed files with 222 additions and 85 deletions
|
@ -205,7 +205,9 @@ t_bootstrap(args_raw)
|
|||
fprintf(stderr, "Unhandled exception in thread:\n");
|
||||
print_error(); /* From pythonmain.c */
|
||||
}
|
||||
(void) save_thread();
|
||||
else
|
||||
DECREF(res);
|
||||
(void) save_thread(); /* Should always be NULL */
|
||||
exit_thread();
|
||||
}
|
||||
|
||||
|
@ -236,9 +238,11 @@ thread_exit_thread(self, args)
|
|||
object *self; /* Not used */
|
||||
object *args;
|
||||
{
|
||||
object *frame;
|
||||
if (!getnoarg(args))
|
||||
return NULL;
|
||||
(void) save_thread();
|
||||
frame = save_thread(); /* Should never be NULL */
|
||||
DECREF(frame);
|
||||
exit_thread();
|
||||
for (;;) { } /* Should not be reached */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue