summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2007-08-20 07:16:33 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2007-08-20 07:16:33 (GMT)
commitb803c517bf6950cd91790b731d2bea32b7e9e03e (patch)
tree29b8a39711e8e88451718857547e0a949dfe6ca6 /Include/object.h
parent30d1c51ac97a93f68015a0c646bd130140b69a98 (diff)
downloadcpython-b803c517bf6950cd91790b731d2bea32b7e9e03e.zip
cpython-b803c517bf6950cd91790b731d2bea32b7e9e03e.tar.gz
cpython-b803c517bf6950cd91790b731d2bea32b7e9e03e.tar.bz2
Fix memory leak in arraymodule.c and respond to a few comments by nnorwitz.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h
index dfabefd..9dd100f 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -145,9 +145,10 @@ typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
typedef struct bufferinfo {
void *buf;
Py_ssize_t len;
- Py_ssize_t itemsize;
+ Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
+ pointed to by strides in simple case.*/
int readonly;
- int ndim; /* XXX(nnorwitz): should be Py_ssize_t??? */
+ int ndim;
char *format;
Py_ssize_t *shape;
Py_ssize_t *strides;