//------------------------------------------------------------------------------ // GxB_Iterator_free: free an iterator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2023, All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //------------------------------------------------------------------------------ #include "GB.h" GrB_Info GxB_Iterator_free (GxB_Iterator *iterator) { if (iterator != NULL) { size_t header_size = (*iterator)->header_size ; if (header_size > 0) { (*iterator)->header_size = 0 ; GB_FREE (iterator, header_size) ; } } return (GrB_SUCCESS) ; }