mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Fix memory leak in arraymodule.c and respond to a few comments by nnorwitz.
This commit is contained in:
parent
30d1c51ac9
commit
b803c517bf
3 changed files with 19 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue