[Python-3000-checkins] r56924 - python/branches/py3k/Modules/arraymodule.c

martin.v.loewis python-3000-checkins at python.org
Sat Aug 11 16:25:28 CEST 2007


Author: martin.v.loewis
Date: Sat Aug 11 16:25:27 2007
New Revision: 56924

Modified:
   python/branches/py3k/Modules/arraymodule.c
Log:
Fix reference leak.


Modified: python/branches/py3k/Modules/arraymodule.c
==============================================================================
--- python/branches/py3k/Modules/arraymodule.c	(original)
+++ python/branches/py3k/Modules/arraymodule.c	Sat Aug 11 16:25:27 2007
@@ -1258,6 +1258,7 @@
 		Py_DECREF(bytes);
 		if (res == NULL)
 			return NULL;
+		Py_DECREF(res); /* drop write result */
 	}
 
   done:


More information about the Python-3000-checkins mailing list