mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Leak fix from Michael Hudson. Fix memory leak when dialect doesn't
validate. Closes 1220242.
This commit is contained in:
		
							parent
							
								
									d6d2c0d08b
								
							
						
					
					
						commit
						d60fbd469e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -416,7 +416,9 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	ret = (PyObject *)self;
 | 
			
		||||
	Py_INCREF(self);
 | 
			
		||||
err:
 | 
			
		||||
	Py_XDECREF(self);
 | 
			
		||||
	Py_XDECREF(dialect);
 | 
			
		||||
	Py_XDECREF(delimiter);
 | 
			
		||||
	Py_XDECREF(doublequote);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue