Skip to content

Commit 0b97604

Browse files
committed
review comment
1 parent 7f6bc4b commit 0b97604

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_testcapimodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ test_pyset_add(PyObject* self, PyObject *Py_UNUSED(args))
24412441
{
24422442

24432443
PyObject *set = NULL, *empty_tuple=NULL, *tracked_object;
2444-
2444+
int return_value;
24452445

24462446
tracked_object = PyImport_ImportModule("sys");
24472447
if (tracked_object == NULL) {
@@ -2452,15 +2452,13 @@ test_pyset_add(PyObject* self, PyObject *Py_UNUSED(args))
24522452
goto failed;
24532453
}
24542454

2455-
2456-
int return_value;
24572455
empty_tuple = PyTuple_New(0);
24582456
if (empty_tuple == NULL) {
24592457
goto failed;
24602458
}
24612459
set = PyFrozenSet_New(empty_tuple);
24622460
if (set == NULL) {
2463-
return NULL;
2461+
goto failed;
24642462
}
24652463

24662464
if (PyObject_GC_IsTracked(set)) {

0 commit comments

Comments
 (0)