diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2017-09-14 07:35:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 07:35:58 (GMT) |
commit | dae0276bb6bc7281d59fb0b8f1aab31634ee80dc (patch) | |
tree | d36e7b49ee6ef1cdb2a2384be568c8d28a7b0bb0 /Include | |
parent | 93c92f7d1dbb6e7e472f1d0444c6968858113de2 (diff) | |
download | cpython-dae0276bb6bc7281d59fb0b8f1aab31634ee80dc.zip cpython-dae0276bb6bc7281d59fb0b8f1aab31634ee80dc.tar.gz cpython-dae0276bb6bc7281d59fb0b8f1aab31634ee80dc.tar.bz2 |
bpo-30860: Fix a refleak. (#3567)
Resolves bpo-31420.
(This was accidentally reverted when in #3565.)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 3 | ||||
-rw-r--r-- | Include/pystate.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index b46d4c3..9bb780e 100644 --- a/Include/object.h +++ b/Include/object.h @@ -727,14 +727,13 @@ PyAPI_FUNC(Py_ssize_t) _Py_GetRefTotal(void); /* Py_REF_DEBUG also controls the display of refcounts and memory block * allocations at the interactive prompt and at interpreter shutdown */ +PyAPI_FUNC(PyObject *) _PyDebug_XOptionShowRefCount(void); PyAPI_FUNC(void) _PyDebug_PrintTotalRefs(void); -#define _PY_DEBUG_PRINT_TOTAL_REFS() _PyDebug_PrintTotalRefs() #else #define _Py_INC_REFTOTAL #define _Py_DEC_REFTOTAL #define _Py_REF_DEBUG_COMMA #define _Py_CHECK_REFCNT(OP) /* a semicolon */; -#define _PY_DEBUG_PRINT_TOTAL_REFS() #endif /* Py_REF_DEBUG */ #ifdef COUNT_ALLOCS diff --git a/Include/pystate.h b/Include/pystate.h index 0906114..507a598 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -61,8 +61,6 @@ typedef struct _is { /* Used in Python/sysmodule.c. */ int check_interval; - PyObject *warnoptions; - PyObject *xoptions; /* Used in Modules/_threadmodule.c. */ long num_threads; |