From 1dd1500e91b485499bfdec9062fcd7b0e3968d8e Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 27 Jun 2020 12:53:15 +0100 Subject: [PATCH] ECC-1126: run with valgrind --- src/grib_dumper_class_bufr_decode_C.c | 1 - src/grib_dumper_class_bufr_decode_fortran.c | 1 - src/grib_dumper_class_bufr_decode_python.c | 1 - 3 files changed, 3 deletions(-) diff --git a/src/grib_dumper_class_bufr_decode_C.c b/src/grib_dumper_class_bufr_decode_C.c index c289a0c57..b95dd4341 100644 --- a/src/grib_dumper_class_bufr_decode_C.c +++ b/src/grib_dumper_class_bufr_decode_C.c @@ -567,7 +567,6 @@ static void dump_string(grib_dumper* d, grib_accessor* a, const char* comment) p = value; r = compute_bufr_key_rank(h, self->keys, a->name); if (grib_is_missing_string(a, (unsigned char*)value, size)) { - grib_context_free(c, value); return; } diff --git a/src/grib_dumper_class_bufr_decode_fortran.c b/src/grib_dumper_class_bufr_decode_fortran.c index d01e1e083..0089d35b2 100644 --- a/src/grib_dumper_class_bufr_decode_fortran.c +++ b/src/grib_dumper_class_bufr_decode_fortran.c @@ -509,7 +509,6 @@ static void dump_string(grib_dumper* d, grib_accessor* a, const char* comment) p = value; r = compute_bufr_key_rank(h, self->keys, a->name); if (grib_is_missing_string(a, (unsigned char*)value, size)) { - grib_context_free(c, value); return; } diff --git a/src/grib_dumper_class_bufr_decode_python.c b/src/grib_dumper_class_bufr_decode_python.c index 4ebd9cf73..18dc5846c 100644 --- a/src/grib_dumper_class_bufr_decode_python.c +++ b/src/grib_dumper_class_bufr_decode_python.c @@ -522,7 +522,6 @@ static void dump_string(grib_dumper* d, grib_accessor* a, const char* comment) p = value; r = compute_bufr_key_rank(h, self->keys, a->name); if (grib_is_missing_string(a, (unsigned char*)value, size)) { - grib_context_free(c, value); return; }