one Py_DECREF was put at the wrong place...
This commit is contained in:
parent
af69299597
commit
305adbe6ad
1 changed files with 1 additions and 1 deletions
|
|
@ -90,8 +90,8 @@ getattr_func(const char *path, struct stat *st)
|
|||
#define fetchattr_soft(st, attr) \
|
||||
if ((tmp = PyObject_GetAttrString(v, #attr))) { \
|
||||
if (!(PyInt_Check(tmp) || PyLong_Check(tmp))) { \
|
||||
goto OUT_DECREF; \
|
||||
Py_DECREF(tmp); \
|
||||
goto OUT_DECREF; \
|
||||
} \
|
||||
st->attr = PyInt_AsLong(tmp); \
|
||||
Py_DECREF(tmp); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue