From 66eda26a72f052ac97512037a682bb08974681a6 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 26 Jul 2013 15:54:07 +0200 Subject: [PATCH] Handle yet another potential failure in testcapi CID 1058280 --- Modules/_testcapimodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index c3563fb5d29..86ef713fae4 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2249,6 +2249,8 @@ profile_int(PyObject *self, PyObject* args) /* Test 7: Perform medium int addition */ op1 = PyLong_FromLong(1000); + if (op1 == NULL) + return NULL; gettimeofday(&start, NULL); for(i=0; i < 10000000; i++) { result = PyNumber_Add(op1, op1);