diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-12 00:08:59 +0200 | 
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-12 00:08:59 +0200 | 
| commit | c31df042340ed97b38d6364d4ee5a8d74aafca01 (patch) | |
| tree | 53df70da88bea723c414c334a4991e80dadc4fff /Modules/_pickle.c | |
| parent | cc35159ed87c27966de1a06b71e05e184303b7fc (diff) | |
| download | cpython-git-c31df042340ed97b38d6364d4ee5a8d74aafca01.tar.gz | |
Issue #18408: Oh, I was wrong: Pickler_New() must call Py_DECREF() to destroy
the newly created pickler, and not PyObject_GC_Del().
Diffstat (limited to 'Modules/_pickle.c')
| -rw-r--r-- | Modules/_pickle.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index adb642e2f6..8b3438e4e3 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -782,7 +782,7 @@ _Pickler_New(void)                                                      self->max_output_len);      if (self->memo == NULL || self->output_buffer == NULL) { -        PyObject_GC_Del(self); +        Py_DECREF(self);          return NULL;      }      return self;  | 
