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
582
582
stringdtype_dealloc (StringDTypeObject * self )
583
583
{
584
584
Py_XDECREF (self -> na_object );
585
+ npy_string_free (& self -> packed_default_string );
586
+ npy_string_free (& self -> packed_na_name );
585
587
PyArrayDescr_Type .tp_dealloc ((PyObject * )self );
586
588
}
587
589
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ npy_string_free(npy_packed_static_string *str)
178
178
{
179
179
if (is_not_a_vstring (str )) {
180
180
// zero out
181
- memcpy (str , & NPY_EMPTY_STRING , sizeof (npy_static_string ));
181
+ memcpy (str , NPY_EMPTY_STRING , sizeof (npy_packed_static_string ));
182
182
}
183
183
else {
184
184
_npy_static_string_u * str_u = (_npy_static_string_u * )str ;
You can’t perform that action at this time.
0 commit comments