[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.192, 2.193

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Fri Aug 15 10:26:37 EDT 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv18633/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Fix another refcounting leak in PyUnicode_EncodeCharmap().


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.192
retrieving revision 2.193
diff -C2 -d -r2.192 -r2.193
*** unicodeobject.c	15 Aug 2003 15:00:26 -0000	2.192
--- unicodeobject.c	15 Aug 2003 16:26:34 -0000	2.193
***************
*** 3028,3033 ****
  		&exc,
  		&known_errorHandler, &errorHandler, errors,
! 		&res, &respos))
  		goto onError;
  	}
  	else
--- 3028,3035 ----
  		&exc,
  		&known_errorHandler, &errorHandler, errors,
! 		&res, &respos)) {
! 		Py_DECREF(x);
  		goto onError;
+ 	    }
  	}
  	else





More information about the Python-checkins mailing list