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

Vladimir Marangozov python-dev@python.org
2000年7月11日 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);

AltStyle によって変換されたページ (->オリジナル) /