From 4f5511599e564dcf566e77adb02ec6f692b7f00b Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sun, 29 Mar 2020 22:08:53 +0100 Subject: [PATCH] Memory leak --- src/grib_index.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/grib_index.c b/src/grib_index.c index a52033207..7d5fabadd 100644 --- a/src/grib_index.c +++ b/src/grib_index.c @@ -980,6 +980,7 @@ grib_index* grib_index_read(grib_context* c, const char* filename, int* err) index->count = index_count; fclose(fh); + grib_context_free(c, files); return index; }