diff options
Diffstat (limited to 'Python/suggestions.c')
-rw-r--r-- | Python/suggestions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/suggestions.c b/Python/suggestions.c index eee61b2..ad645c7 100644 --- a/Python/suggestions.c +++ b/Python/suggestions.c @@ -173,8 +173,7 @@ calculate_suggestions(PyObject *dir, suggestion_distance = current_distance; } } - Py_XINCREF(suggestion); - return suggestion; + return Py_XNewRef(suggestion); } static PyObject * |