Fix refleak introduced in change 032cbdb596fe

Issue #28915.
This commit is contained in:
Victor Stinner 2016-12-09 15:35:40 +01:00
parent c24217e144
commit ddc120f4cf

View File

@ -1409,6 +1409,7 @@ build_struct_time(int y, int m, int d, int hh, int mm, int ss, int dstflag)
result = _PyObject_CallMethodIdObjArgs(time, &PyId_struct_time,
args, NULL);
Py_DECREF(time);
Py_DECREF(args);
return result;
}