diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2007-08-20 07:16:33 (GMT) |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2007-08-20 07:16:33 (GMT) |
commit | b803c517bf6950cd91790b731d2bea32b7e9e03e (patch) | |
tree | 29b8a39711e8e88451718857547e0a949dfe6ca6 /Include | |
parent | 30d1c51ac97a93f68015a0c646bd130140b69a98 (diff) | |
download | cpython-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')
-rw-r--r-- | Include/object.h | 5 |
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; |