From 19267f8a0a5fc34b5cb6f143f15254e8b345baf5 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 17 Dec 2019 00:52:42 +0100 Subject: [PATCH] Fix bug in ACL(filedef=...) constructor Only found by python3.7-dgb, the 3.8 one ignored this. 'path' is a 'char*', we can't decref it, the proper one to decref is the actual filedef PyBytes object. Sigh :( --- acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acl.c b/acl.c index eb7d491..2433dab 100644 --- a/acl.c +++ b/acl.c @@ -204,7 +204,7 @@ static int ACL_init(PyObject* obj, PyObject* args, PyObject *keywds) { PyErr_SetFromErrnoWithFilename(PyExc_IOError, path); set_err = 1; } - Py_DECREF(path); + Py_DECREF(filedef); } #ifdef HAVE_LINUX else if(mode != -1) -- 2.39.2