File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
stringdtype/stringdtype/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -582,6 +582,8 @@ static void
582582stringdtype_dealloc (StringDTypeObject * self )
583583{
584584 Py_XDECREF (self -> na_object );
585+ npy_string_free (& self -> packed_default_string );
586+ npy_string_free (& self -> packed_na_name );
585587 PyArrayDescr_Type .tp_dealloc ((PyObject * )self );
586588}
587589
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ npy_string_free(npy_packed_static_string *str)
178178{
179179 if (is_not_a_vstring (str )) {
180180 // zero out
181- memcpy (str , & NPY_EMPTY_STRING , sizeof (npy_static_string ));
181+ memcpy (str , NPY_EMPTY_STRING , sizeof (npy_packed_static_string ));
182182 }
183183 else {
184184 _npy_static_string_u * str_u = (_npy_static_string_u * )str ;
You can’t perform that action at this time.
0 commit comments