diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 14:35:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 14:35:40 (GMT) |
commit | ddc120f4cf6fb049570d5483bb7678491d27b3d5 (patch) | |
tree | 83ef90e54e876893d61baf2d3a0a57ea06565535 /Modules | |
parent | c24217e144c750a1452ca42524230630d022873f (diff) | |
download | cpython-ddc120f4cf6fb049570d5483bb7678491d27b3d5.zip cpython-ddc120f4cf6fb049570d5483bb7678491d27b3d5.tar.gz cpython-ddc120f4cf6fb049570d5483bb7678491d27b3d5.tar.bz2 |
Fix refleak introduced in change 032cbdb596fe
Issue #28915.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_datetimemodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 77caba1..7b0da79 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; } |