diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-27 00:31:37 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-27 00:31:37 (GMT) |
commit | 9edd2bd35cfc5f33b53c5def02cac23e7bb6e84b (patch) | |
tree | 4ccbdce39b24128ed28c1979cb07eaf361f0ae62 /Include | |
parent | 4b24a42f3c72b4f88da8989a77a175e654dbdcbb (diff) | |
download | cpython-9edd2bd35cfc5f33b53c5def02cac23e7bb6e84b.zip cpython-9edd2bd35cfc5f33b53c5def02cac23e7bb6e84b.tar.gz cpython-9edd2bd35cfc5f33b53c5def02cac23e7bb6e84b.tar.bz2 |
Fix #3651 various memory leaks when using the buffer interface
by Amaury Forgeot d'Arc
Reviewer: Antoine Pitrou
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h index 60584a0..bddfb6f 100644 --- a/Include/object.h +++ b/Include/object.h @@ -143,7 +143,7 @@ typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *); /* buffer interface */ typedef struct bufferinfo { void *buf; - PyObject *obj; /* borrowed reference */ + PyObject *obj; /* owned reference */ Py_ssize_t len; Py_ssize_t itemsize; /* This is Py_ssize_t so it can be pointed to by strides in simple case.*/ |