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

This commit is contained in:
Vladimir Marangozov 2000-07-12 00:49:17 +00:00
parent 56509a3cb8
commit 9e3d73af93
1 changed files with 1 additions and 1 deletions

View File

@ -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);