summaryrefslogtreecommitdiff
path: root/simplejson
diff options
context:
space:
mode:
authorKeith Bussell <keith@truecar.com>2014-10-23 21:59:08 -0700
committerKeith Bussell <keith@truecar.com>2014-10-23 21:59:08 -0700
commite8c7018ba06ef6a5709b6242684bd06d9964904e (patch)
treedd389218f56244798811c509dd657d6f6e89eaf7 /simplejson
parent54d5ff15d508c51366986cc4f77f2f287f036582 (diff)
downloadsimplejson-e8c7018ba06ef6a5709b6242684bd06d9964904e.tar.gz
Fix memory leak when an error occurs encoding dict items
Diffstat (limited to 'simplejson')
-rw-r--r--simplejson/_speedups.c1
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);