summaryrefslogtreecommitdiff
path: root/Modules/_sqlite/connection.h
diff options
context:
space:
mode:
authorgescheit <gescheit@yandex-team.ru>2019-07-13 06:15:49 +0300
committerBenjamin Peterson <benjamin@python.org>2019-07-12 20:15:48 -0700
commitb9a0376b0dedf16a2f82fa43d851119d1f7a2707 (patch)
treee452ac1e4dbc7c1dd0624a597e06fd6468a3cd69 /Modules/_sqlite/connection.h
parent0827064c955f88df8ba5621d8e3d81be3cfc26a9 (diff)
downloadcpython-git-b9a0376b0dedf16a2f82fa43d851119d1f7a2707.tar.gz
closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)
Diffstat (limited to 'Modules/_sqlite/connection.h')
-rw-r--r--Modules/_sqlite/connection.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/Modules/_sqlite/connection.h b/Modules/_sqlite/connection.h
index 4e9d94c5f3..206085e00a 100644
--- a/Modules/_sqlite/connection.h
+++ b/Modules/_sqlite/connection.h
@@ -85,11 +85,10 @@ typedef struct
*/
PyObject* text_factory;
- /* remember references to functions/classes used in
- * create_function/create/aggregate, use these as dictionary keys, so we
- * can keep the total system refcount constant by clearing that dictionary
- * in connection_dealloc */
- PyObject* function_pinboard;
+ /* remember references to object used in trace_callback/progress_handler/authorizer_cb */
+ PyObject* function_pinboard_trace_callback;
+ PyObject* function_pinboard_progress_handler;
+ PyObject* function_pinboard_authorizer_cb;
/* a dictionary of registered collation name => collation callable mappings */
PyObject* collations;