summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-27 00:31:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-27 00:31:37 (GMT)
commit9edd2bd35cfc5f33b53c5def02cac23e7bb6e84b (patch)
tree4ccbdce39b24128ed28c1979cb07eaf361f0ae62 /Include/object.h
parent4b24a42f3c72b4f88da8989a77a175e654dbdcbb (diff)
downloadcpython-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/object.h')
-rw-r--r--Include/object.h2
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.*/