diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-11 23:05:40 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-11 23:05:40 (GMT) |
commit | ec74f2fda79663d9e61d704315b737e262b83618 (patch) | |
tree | 5d26976de4c27c1acf0d3b3c43b88c55860a0bf3 /Modules/_tkinter.c | |
parent | 42f08ac1e303117ea789a8ad2a1326db75f923f8 (diff) | |
download | cpython-ec74f2fda79663d9e61d704315b737e262b83618.zip cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.gz cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.bz2 |
Add more missing PyErr_NoMemory() after failled memory allocs
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index b9dc179..4e6bcbc 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -2050,7 +2050,7 @@ Tkapp_CreateCommand(PyObject *_self, PyObject *args) data = PyMem_NEW(PythonCmd_ClientData, 1); if (!data) - return NULL; + return PyErr_NoMemory(); Py_XINCREF(self); Py_XINCREF(func); data->self = _self; |