Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2974:19e44e15058a
Date: 2017-06-04 15:37 +0200
http://bitbucket.org/cffi/cffi/changeset/19e44e15058a/
Log: Another missing Py_DECREF
diff --git a/c/realize_c_type.c b/c/realize_c_type.c
--- a/c/realize_c_type.c
+++ b/c/realize_c_type.c
@@ -269,8 +269,11 @@
PyObject *x = realize_c_type_or_func(builder, opcodes, index);
if (x == NULL || CTypeDescr_Check(x))
return (CTypeDescrObject *)x;
- else
- return unexpected_fn_type(x);
+ else {
+ unexpected_fn_type(x);
+ Py_DECREF(x);
+ return NULL;
+ }
}
static void _realize_name(char *target, const char *prefix, const char
*srcname)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit