summaryrefslogtreecommitdiffstats
path: root/Python/suggestions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/suggestions.c')
-rw-r--r--Python/suggestions.c3
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 *