From d3846728a979ada7b667960923f844c5e89f588a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 14 Jan 2025 14:27:14 +0000 Subject: [PATCH] Geoiterator: reduced gaussian grid array clear --- src/geo/iterator/grib_iterator_class_gaussian_reduced.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geo/iterator/grib_iterator_class_gaussian_reduced.cc b/src/geo/iterator/grib_iterator_class_gaussian_reduced.cc index c7881a7f2..82f996a18 100644 --- a/src/geo/iterator/grib_iterator_class_gaussian_reduced.cc +++ b/src/geo/iterator/grib_iterator_class_gaussian_reduced.cc @@ -303,10 +303,10 @@ int GaussianReduced::init(grib_handle* h, grib_arguments* args) grib_get_long_array_internal(h, spl, pl, &plsize); - lats_ = (double*)grib_context_malloc(h->context, nv_ * sizeof(double)); + lats_ = (double*)grib_context_malloc_clear(h->context, nv_ * sizeof(double)); if (!lats_) return GRIB_OUT_OF_MEMORY; - lons_ = (double*)grib_context_malloc(h->context, nv_ * sizeof(double)); + lons_ = (double*)grib_context_malloc_clear(h->context, nv_ * sizeof(double)); if (!lons_) return GRIB_OUT_OF_MEMORY;