Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().
This commit is contained in:
parent
56509a3cb8
commit
9e3d73af93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue