mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	sysmodule.c: calling sys.settrace() or sys.setprofile() without
arguments crashed in INCREF() calls which should be XINCREF() calls. timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by Jaap Vermeulen xxobject.c: include modsupport.h
This commit is contained in:
		
							parent
							
								
									710e1df585
								
							
						
					
					
						commit
						5dc8eb0914
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -102,7 +102,7 @@ sys_settrace(self, args) | |||
| 	if (args == None) | ||||
| 		args = NULL; | ||||
| 	else | ||||
| 		INCREF(args); | ||||
| 		XINCREF(args); | ||||
| 	XDECREF(sys_trace); | ||||
| 	sys_trace = args; | ||||
| 	INCREF(None); | ||||
|  | @ -117,7 +117,7 @@ sys_setprofile(self, args) | |||
| 	if (args == None) | ||||
| 		args = NULL; | ||||
| 	else | ||||
| 		INCREF(args); | ||||
| 		XINCREF(args); | ||||
| 	XDECREF(sys_profile); | ||||
| 	sys_profile = args; | ||||
| 	INCREF(None); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum