From: Vladimir Marangozov Date: Wed, 12 Jul 2000 00:49:17 +0000 (+0000) Subject: Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc(). X-Git-Tag: v2.0b1~874 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e3d73af932f8253eadd27c5903f184886f0494e;p=thirdparty%2FPython%2Fcpython.git Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc(). --- diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index b1626db707d5..5b284c61764e 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -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);