Fix memory leak in arraymodule.c and respond to a few comments by nnorwitz.

This commit is contained in:
Travis E. Oliphant 2007-08-20 07:16:33 +00:00
parent 30d1c51ac9
commit b803c517bf
3 changed files with 19 additions and 23 deletions

View file

@ -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;