Sumner Hayes wrote:
> Python 2.5 has tightened up the way it handles memory
> allocation, and there's a mis-match in the way that
> if_python.c handles memory allocation which worked
> with earlier Python versions but causes vim to
> seg-fault with 2.5. Essentially, PyMem_DEL shouldn't
> be paired with PyObject allocations--they should use
> Py_DECREF.
>
> Since every PyMem_DEL in if_python.c is on a PyObject
> *, they should all be replaced with Py_DECREF.
>
> This should be safe with earlier python versions as
> well as with 2.5 (I've tested with 2.3 and 2.5).
>
> Patch attached, though a simple
> %s/PyMem_DEL/Py_DECREF/ is fine.
Makes sense to me. If nobody objects then I'll include this change.
--
It is illegal to take more than three sips of beer at a time while standing.
[real standing law in Texas, United States of America]
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///