mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Plug a leak with calling something other than a function or method is
called with keyword arguments -- the keyword and value were leaked. This affected for instance with a __call__() method. Bug reported and fix supplied by Jim Fulton.
This commit is contained in:
		
							parent
							
								
									950361c6ca
								
							
						
					
					
						commit
						d0eb429b88
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -1482,11 +1482,10 @@ eval_code2(co, globals, locals, | ||||||
| 						object *key = POP(); | 						object *key = POP(); | ||||||
| 						err = mappinginsert( | 						err = mappinginsert( | ||||||
| 							kwdict, key, value); | 							kwdict, key, value); | ||||||
| 						if (err) { | 						DECREF(key); | ||||||
| 							DECREF(key); | 						DECREF(value); | ||||||
| 							DECREF(value); | 						if (err) | ||||||
| 							break; | 							break; | ||||||
| 						} |  | ||||||
| 					} | 					} | ||||||
| 					if (err) { | 					if (err) { | ||||||
| 						DECREF(args); | 						DECREF(args); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum