Memory leak

This commit is contained in:
Shahram Najm 2020-03-18 14:48:15 +00:00
parent a2d3d57789
commit 678c8eea86
1 changed files with 1 additions and 0 deletions

View File

@ -501,6 +501,7 @@ grib_context* grib_context_get_default()
char buffer[ECC_PATH_MAXLEN];
ecc_snprintf(buffer, ECC_PATH_MAXLEN, "%s%c%s", default_grib_context.grib_definition_files_path,
ECC_PATH_DELIMITER_CHAR, ECCODES_DEFINITION_PATH);
free(default_grib_context.grib_definition_files_path);
default_grib_context.grib_definition_files_path = strdup(buffer);
}
}