[Python-checkins] CVS: python/dist/src/Modules regexmodule.c,1.37,1.38

Vladimir Marangozov python-dev@python.org
Tue, 11 Jul 2000 17:49:20 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19203

Modified Files:
	regexmodule.c 
Log Message:
Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().

Index: regexmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/regexmodule.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** regexmodule.c	2000/07/10 13:05:28	1.37
--- regexmodule.c	2000/07/12 00:49:17	1.38
***************
*** 44,48 ****
  {
  	if (re->re_patbuf.buffer)
! 		PyMem_DEL(re->re_patbuf.buffer);
  	Py_XDECREF(re->re_translate);
  	Py_XDECREF(re->re_lastok);
--- 44,48 ----
  {
  	if (re->re_patbuf.buffer)
! 		free(re->re_patbuf.buffer);
  	Py_XDECREF(re->re_translate);
  	Py_XDECREF(re->re_lastok);