summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
authorVladimir Marangozov <vladimir.marangozov@t-online.de>2000-07-12 00:49:17 (GMT)
committerVladimir Marangozov <vladimir.marangozov@t-online.de>2000-07-12 00:49:17 (GMT)
commit9e3d73af932f8253eadd27c5903f184886f0494e (patch)
tree5f591d0a5c73617ba712ef1b45223521761e2c58 /Modules/regexmodule.c
parent56509a3cb81819a4baa209d5110ea2d1fb37f131 (diff)
downloadcpython-9e3d73af932f8253eadd27c5903f184886f0494e.zip
cpython-9e3d73af932f8253eadd27c5903f184886f0494e.tar.gz
cpython-9e3d73af932f8253eadd27c5903f184886f0494e.tar.bz2
Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r--Modules/regexmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index b1626db..5b284c6 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);