Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: missing incref for metadata of datetime dtypes.

  • Loading branch information...
commit 7953c010971fc091230833355d930ec4ebdd29a0 1 parent 5013093
Thouis (Ray) Jones thouis authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  numpy/core/src/multiarray/descriptor.c
1  numpy/core/src/multiarray/descriptor.c
View
@@ -2536,6 +2536,7 @@ arraydescr_setstate(PyArray_Descr *self, PyObject *args)
/* The Python metadata */
self->metadata = PyTuple_GET_ITEM(metadata, 0);
+ Py_XINCREF(self->metadata);
/* The datetime metadata */
dt_data = &(((PyArray_DatetimeDTypeMetaData *)self->c_metadata)->meta);
Please sign in to comment.
Something went wrong with that request. Please try again.