diff options
| author | Tres Seaver <tseaver@palladion.com> | 2010-04-10 18:33:26 +0000 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2010-04-10 18:33:26 +0000 |
| commit | 9e80e92fb04937cf09f5466b9ff13fd65a703183 (patch) | |
| tree | fc045868cd959b1718c6385ff79bd37ec975233b | |
| parent | ab3ab608ff69af13b0d782d5ba3a093a8db6a390 (diff) | |
| download | zope-i18nmessageid-9e80e92fb04937cf09f5466b9ff13fd65a703183.tar.gz | |
LP #257657 / 489529: Fix memory leak in C extension.
| -rw-r--r-- | CHANGES.txt | 2 | ||||
| -rw-r--r-- | src/zope/i18nmessageid/_zope_i18nmessageid_message.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7c1226f..a7c4224 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,8 @@ CHANGES 3.5.1 (unreleased) ------------------ +- LP #257657 / 489529: Fix memory leak in C extension. + - Fixed the compilation of the C extension with python 2.6: refactored it as a setuptools Feature. diff --git a/src/zope/i18nmessageid/_zope_i18nmessageid_message.c b/src/zope/i18nmessageid/_zope_i18nmessageid_message.c index 02e0988..0a574b8 100644 --- a/src/zope/i18nmessageid/_zope_i18nmessageid_message.c +++ b/src/zope/i18nmessageid/_zope_i18nmessageid_message.c @@ -142,7 +142,7 @@ static void Message_dealloc(Message *self) { Message_clear(self); - self->base.ob_type->tp_free((PyObject*)self); + PyUnicode_Type.tp_dealloc((PyObject*)self); } static PyObject * |
