[pypy-commit] cffi default: fix an obscure-case leak

arigo noreply at buildbot.pypy.org
Fri Dec 19 15:59:06 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1593:c6be8df144eb
Date: 2014-12-19 15:59 +0100
http://bitbucket.org/cffi/cffi/changeset/c6be8df144eb/

Log:	fix an obscure-case leak

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -3070,6 +3070,7 @@
             char *data = ((CDataObject *)io)->c_data;
             /*READ(data, sizeof(long double)*/
             lvalue = read_raw_longdouble_data(data);
+            Py_DECREF(io);
             cd = _new_casted_primitive(ct);
             if (cd != NULL)
                 write_raw_longdouble_data(cd->c_data, lvalue);


More information about the pypy-commit mailing list