From ddc120f4cf6fb049570d5483bb7678491d27b3d5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 9 Dec 2016 15:35:40 +0100 Subject: [PATCH] Fix refleak introduced in change 032cbdb596fe Issue #28915. --- Modules/_datetimemodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 77caba1ddce..7b0da79a701 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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; }