[Python-checkins] r50675 - python/trunk/Modules/_tkinter.c

neal.norwitz python-checkins at python.org
Sun Jul 16 04:02:57 CEST 2006


Author: neal.norwitz
Date: Sun Jul 16 04:02:57 2006
New Revision: 50675

Modified:
   python/trunk/Modules/_tkinter.c
Log:
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).


Modified: python/trunk/Modules/_tkinter.c
==============================================================================
--- python/trunk/Modules/_tkinter.c	(original)
+++ python/trunk/Modules/_tkinter.c	Sun Jul 16 04:02:57 2006
@@ -2104,8 +2104,8 @@
 	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;
 	


More information about the Python-checkins mailing list