Skip to content

Commit c519e3c

Browse files
Fix refleak.
1 parent 2a2c0b1 commit c519e3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Modules/_datetimemodule.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7167,12 +7167,11 @@ _datetime_exec(PyObject *module)
71677167
* values. This may change in the future.*/
71687168

71697169
/* -23:59 */
7170-
PyObject *min = create_timezone_from_delta(-1, 60, 0, 1);
7171-
DATETIME_ADD_MACRO(d, "min", min);
7170+
DATETIME_ADD_MACRO(d, "min", create_timezone_from_delta(-1, 60, 0, 1));
71727171

71737172
/* +23:59 */
7174-
PyObject *max = create_timezone_from_delta(0, (23 * 60 + 59) * 60, 0, 0);
7175-
DATETIME_ADD_MACRO(d, "max", max);
7173+
DATETIME_ADD_MACRO(
7174+
d, "max", create_timezone_from_delta(0, (23 * 60 + 59) * 60, 0, 0));
71767175

71777176
#undef DATETIME_ADD_MACRO
71787177

0 commit comments

Comments
 (0)