Fix memory leak in Kokkos memory grow() function

This commit is contained in:
Stan Gerald Moore 2021-05-17 10:13:56 -06:00
parent 2f91b03c50
commit cc99be900a
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ TYPE grow_kokkos(TYPE &data, typename TYPE::value_type **&array,
data.resize(n1); data.resize(n1);
bigint nbytes = ((bigint) sizeof(typename TYPE::value_type *)) * n1; bigint nbytes = ((bigint) sizeof(typename TYPE::value_type *)) * n1;
array = (typename TYPE::value_type **) smalloc(nbytes,name); array = (typename TYPE::value_type **) srealloc(array,nbytes,name);
for (int i = 0; i < n1; i++) for (int i = 0; i < n1; i++)
if (data.h_view.extent(1)==0) if (data.h_view.extent(1)==0)