From 32a74fa998afc85f7406f26cfc4d1349d1f20973 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 7 Dec 2020 17:33:52 +0000 Subject: [PATCH] ECC-1172: Memory leaks in encoding BUFR (part 1) --- src/grib_accessor_class_bufr_data_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index 6733aaa22..ac96d0e15 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -1354,6 +1354,7 @@ static int encode_new_element(grib_context* c, grib_accessor_bufr_data_array* se } else { err = encode_string_value(c, buff, pos, bd, self, csval); + grib_context_free(c, csval); } } else {