From 06f18237f7932aab066cae2c09b6e335af5225f2 Mon Sep 17 00:00:00 2001 From: Oleksandr Shulgin Date: Fri, 3 Jul 2015 11:40:00 +0200 Subject: [PATCH] Fix missing free in replmsg_dealloc --- psycopg/replication_message_type.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/psycopg/replication_message_type.c b/psycopg/replication_message_type.c index 27a9c916..e52b32ee 100644 --- a/psycopg/replication_message_type.c +++ b/psycopg/replication_message_type.c @@ -80,7 +80,11 @@ replmsg_clear(replicationMessageObject *self) static void replmsg_dealloc(PyObject* obj) { + PyObject_GC_UnTrack(obj); + replmsg_clear((replicationMessageObject*) obj); + + Py_TYPE(obj)->tp_free(obj); } #define psyco_replmsg_send_time_doc \