mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	self is dereffed (and passed as first arg), so it's known to be good.
func is returned from PyArg_ParseTuple and also dereffed. Reported by Klocwork, #30 (self one at least).
This commit is contained in:
		
							parent
							
								
									ef02b9e144
								
							
						
					
					
						commit
						ce5b3c3188
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2104,8 +2104,8 @@ Tkapp_CreateCommand(PyObject *selfptr, PyObject *args)
 | 
			
		|||
	data = PyMem_NEW(PythonCmd_ClientData, 1);
 | 
			
		||||
	if (!data)
 | 
			
		||||
		return PyErr_NoMemory();
 | 
			
		||||
	Py_XINCREF(self);
 | 
			
		||||
	Py_XINCREF(func);
 | 
			
		||||
	Py_INCREF(self);
 | 
			
		||||
	Py_INCREF(func);
 | 
			
		||||
	data->self = selfptr;
 | 
			
		||||
	data->func = func;
 | 
			
		||||
	
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue