diff options
| author | Armin Rigo <arigo@tunes.org> | 2015-12-07 17:41:44 +0100 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2015-12-07 17:41:44 +0100 |
| commit | 82ced8ccd0bc33ef60449cdce989c3308abe7757 (patch) | |
| tree | d73ee233b7dd17340065c10159ad3e41abf1a9cf /c/call_python.c | |
| parent | f2e9090db9a14d038c03db0c82db0b82ffb9313e (diff) | |
| download | cffi-82ced8ccd0bc33ef60449cdce989c3308abe7757.tar.gz | |
fix (very minor) leak
Diffstat (limited to 'c/call_python.c')
| -rw-r--r-- | c/call_python.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
