mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Fixed dealloc of lobject->smode
I put it by mistake into the in the self->conn checked block in the previous commit.
This commit is contained in:
		
							parent
							
								
									ff341077e0
								
							
						
					
					
						commit
						dbdd0c822f
					
				| 
						 | 
				
			
			@ -363,8 +363,8 @@ lobject_dealloc(PyObject* obj)
 | 
			
		|||
        if (lobject_close(self) < 0)
 | 
			
		||||
            PyErr_Print();
 | 
			
		||||
        Py_XDECREF((PyObject*)self->conn);
 | 
			
		||||
        PyMem_Free(self->smode);
 | 
			
		||||
    }
 | 
			
		||||
    PyMem_Free(self->smode);
 | 
			
		||||
 | 
			
		||||
    Dprintf("lobject_dealloc: deleted lobject object at %p, refcnt = "
 | 
			
		||||
            FORMAT_CODE_PY_SSIZE_T, obj, Py_REFCNT(obj));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user