Commit 62401021 authored by Vladimir Marangozov's avatar Vladimir Marangozov

Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().

parent 02c49b4b
......@@ -43,7 +43,7 @@ static void
reg_dealloc(regexobject *re)
{
if (re->re_patbuf.buffer)
PyMem_DEL(re->re_patbuf.buffer);
free(re->re_patbuf.buffer);
Py_XDECREF(re->re_translate);
Py_XDECREF(re->re_lastok);
Py_XDECREF(re->re_groupindex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment