From fc3a7e09ab91cda38d5e3ba8e97681409d3eed97 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 29 Jun 2008 19:02:16 +0200 Subject: [PATCH] Fix a memory leak in an error handling path --- xattr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xattr.c b/xattr.c index 0abca72..1e4ffaa 100644 --- a/xattr.c +++ b/xattr.c @@ -253,6 +253,7 @@ pylistxattr(PyObject *self, PyObject *args) listxattr(file, buf, nalloc); if(nret == -1) { + PyMem_Free(buf); return PyErr_SetFromErrno(PyExc_IOError); } -- 2.39.2