Memory leak

This commit is contained in:
Shahram Najm 2020-04-09 20:59:25 +01:00
parent 05c6cfc592
commit b86f47e43c
1 changed files with 3 additions and 1 deletions

View File

@ -574,8 +574,10 @@ static void dump_string(grib_dumper* d, grib_accessor* a, const char* comment)
err = grib_unpack_string(a, value, &size);
p = value;
r = compute_bufr_key_rank(h, self->keys, a->name);
if (grib_is_missing_string(a, (unsigned char*)value, size))
if (grib_is_missing_string(a, (unsigned char*)value, size)) {
grib_context_free(c, value);
return;
}
while (*p) {
if (!isprint(*p))