diff Modules/_tkinter.c @ 27828:6ba940cd99ef 2.2

Backport: Add more missing PyErr_NoMemory() after failled memory allocs
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 11 Feb 2003 23:19:35 +0000
parents 7ba2a8c162fa
children 272c75b1d22e
line wrap: on
line diff
--- a/Modules/_tkinter.c	Tue Feb 11 18:05:44 2003 +0000
+++ b/Modules/_tkinter.c	Tue Feb 11 23:19:35 2003 +0000
@@ -1346,7 +1346,7 @@
 
 	data = PyMem_NEW(PythonCmd_ClientData, 1);
 	if (!data)
-		return NULL;
+		return PyErr_NoMemory();
 	Py_XINCREF(self);
 	Py_XINCREF(func);
 	data->self = self;