[issue19972] Leak in pickle (?)

Stefan Krah report at bugs.python.org
Fri Dec 13 23:21:49 CET 2013


Stefan Krah added the comment:

I just see that it should be:

static void
pickle_free(PyObject *m)
...


Even then, the cast is necessary, otherwise you get this warning:

/home/stefan/hg/cpython/Modules/_pickle.c:7450:1: warning: initialization from incompatible pointer type [enabled by default]
/home/stefan/hg/cpython/Modules/_pickle.c:7450:1: warning: (near initialization for '_picklemodule.m_free') [enabled by default]


I agree that it would be nice to update the PEP, but I guess that
would be Martin's call.

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19972>
_______________________________________


More information about the Python-bugs-list mailing list