From 82ced8ccd0bc33ef60449cdce989c3308abe7757 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Mon, 7 Dec 2015 17:41:44 +0100 Subject: fix (very minor) leak --- c/call_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/call_python.c') diff --git a/c/call_python.c b/c/call_python.c index c4d6f60..4fd60c1 100644 --- a/c/call_python.c +++ b/c/call_python.c @@ -43,7 +43,7 @@ static PyObject *_ffi_def_extern_decorator(PyObject *outer_args, PyObject *fn) return NULL; if (s == NULL) { - PyObject *name = PyObject_GetAttrString(fn, "__name__"); + name = PyObject_GetAttrString(fn, "__name__"); if (name == NULL) return NULL; s = PyString_AsString(name); -- cgit v1.2.1