INADA Naoki <songofaca...@gmail.com> added the comment:

> The callstack I initially mentioned still has no explanation and we now know 
> is not correct.

I don't think so.
The callstack is Python's callstack where caused leak in C.  (Python doesn't 
call malloc directly)

In this case, local variables are freed "at end of the function", and it freed 
unclosed socket which cause warning. (*)
So the callstack is completely valid.  While only CPython expert can understand.

(*) or "at the end of the except clause" which frees `e` and `e` have reference 
to the unclosed socket.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33565>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to