[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.190.6.2, 2.190.6.3

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Fri Aug 15 10:27:34 EDT 2003


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

Modified Files:
      Tag: release23-maint
	unicodeobject.c 
Log Message:
Backport checkin:
Fix another refcounting leak in PyUnicode_EncodeCharmap().


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.190.6.2
retrieving revision 2.190.6.3
diff -C2 -d -r2.190.6.2 -r2.190.6.3
*** unicodeobject.c	15 Aug 2003 15:01:26 -0000	2.190.6.2
--- unicodeobject.c	15 Aug 2003 16:27:32 -0000	2.190.6.3
***************
*** 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