mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	merge 3.3 (#16906)
This commit is contained in:
		
						commit
						0b32a480bd
					
				
					 2 changed files with 11 additions and 5 deletions
				
			
		|  | @ -1822,12 +1822,15 @@ _PyUnicode_FromId(_Py_Identifier *id) | |||
| void | ||||
| _PyUnicode_ClearStaticStrings() | ||||
| { | ||||
|     _Py_Identifier *i; | ||||
|     for (i = static_strings; i; i = i->next) { | ||||
|         Py_DECREF(i->object); | ||||
|         i->object = NULL; | ||||
|         i->next = NULL; | ||||
|     _Py_Identifier *tmp, *s = static_strings; | ||||
|     while (s) { | ||||
|         Py_DECREF(s->object); | ||||
|         s->object = NULL; | ||||
|         tmp = s->next; | ||||
|         s->next = NULL; | ||||
|         s = tmp; | ||||
|     } | ||||
|     static_strings = NULL; | ||||
| } | ||||
| 
 | ||||
| /* Internal function, doesn't check maximum character */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson