comparison Objects/funcobject.c @ 21167:fd42eace50ea legacy-trunk

function_call(): Remove a bogus (and I mean *really* bogus) call to Py_DECREF(arg) after the PyErr_NoMemory() call. (Armin Rigo, SF bug #488477.)
author Guido van Rossum <guido@python.org>
date Mon, 03 Dec 2001 19:22:38 +0000
parents b229208a2a72
children 5193290aef0a
comparison
equal deleted inserted replaced
21166:0b4aeb413d7d 21167:fd42eace50ea
356 int pos, i; 356 int pos, i;
357 nk = PyDict_Size(kw); 357 nk = PyDict_Size(kw);
358 k = PyMem_NEW(PyObject *, 2*nk); 358 k = PyMem_NEW(PyObject *, 2*nk);
359 if (k == NULL) { 359 if (k == NULL) {
360 PyErr_NoMemory(); 360 PyErr_NoMemory();
361 Py_DECREF(arg);
362 return NULL; 361 return NULL;
363 } 362 }
364 pos = i = 0; 363 pos = i = 0;
365 while (PyDict_Next(kw, &pos, &k[i], &k[i+1])) 364 while (PyDict_Next(kw, &pos, &k[i], &k[i+1]))
366 i += 2; 365 i += 2;