diff options
author | Jaime Fernandez <jaimefrio@google.com> | 2017-07-11 01:08:51 +0200 |
---|---|---|
committer | Jaime Fernandez <jaimefrio@google.com> | 2017-07-11 01:08:51 +0200 |
commit | 3f3317a44512d2138071ac3e5e540bae86535df0 (patch) | |
tree | 94dcb9f4b783ba546c53ffb596ce6d73c8c9c60f /doc/source/reference/c-api.array.rst | |
parent | 110825244a1555f594b585c72568084f1863ca1b (diff) | |
download | numpy-3f3317a44512d2138071ac3e5e540bae86535df0.tar.gz |
DOC: document how to free memory from PyArray_IntpConverter.
Diffstat (limited to 'doc/source/reference/c-api.array.rst')
-rw-r--r-- | doc/source/reference/c-api.array.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index b00919fae..ad0be871a 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -2887,10 +2887,10 @@ to. to a C-array of :c:type:`npy_intp`. The Python object could also be a single number. The *seq* variable is a pointer to a structure with members ptr and len. On successful return, *seq* ->ptr contains a - pointer to memory that must be freed to avoid a memory leak. The - restriction on memory size allows this converter to be - conveniently used for sequences intended to be interpreted as - array shapes. + pointer to memory that must be freed, by calling :c:func:`PyDimMem_FREE`, + to avoid a memory leak. The restriction on memory size allows this + converter to be conveniently used for sequences intended to be + interpreted as array shapes. .. c:function:: int PyArray_BufferConverter(PyObject* obj, PyArray_Chunk* buf) |