diff options
author | Keith Bussell <keith@truecar.com> | 2014-10-23 21:59:08 -0700 |
---|---|---|
committer | Keith Bussell <keith@truecar.com> | 2014-10-23 21:59:08 -0700 |
commit | e8c7018ba06ef6a5709b6242684bd06d9964904e (patch) | |
tree | dd389218f56244798811c509dd657d6f6e89eaf7 /simplejson/_speedups.c | |
parent | 54d5ff15d508c51366986cc4f77f2f287f036582 (diff) | |
download | simplejson-e8c7018ba06ef6a5709b6242684bd06d9964904e.tar.gz |
Fix memory leak when an error occurs encoding dict items
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r-- | simplejson/_speedups.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 01614c4..0b2d81c 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -3070,6 +3070,7 @@ encoder_listencode_dict(PyEncoderObject *s, JSON_Accu *rval, PyObject *dct, Py_s bail: Py_XDECREF(encoded); Py_XDECREF(items); + Py_XDECREF(item); Py_XDECREF(iter); Py_XDECREF(kstr); Py_XDECREF(ident); |