From d8cd47309180cb82d2339496004d3f20cc41e967 Mon Sep 17 00:00:00 2001 From: edoapra Date: Fri, 25 Apr 2025 17:55:57 -0700 Subject: [PATCH] fix for memory leak when eaf_delete is called without eaf_close https://github.com/GlobalArrays/ga/issues/366 --- pario/eaf/eaf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pario/eaf/eaf.c b/pario/eaf/eaf.c index f1afe2d00..eb8aa33d1 100644 --- a/pario/eaf/eaf.c +++ b/pario/eaf/eaf.c @@ -479,6 +479,9 @@ int EAF_Delete(const char *fname) return EAF_ERR_UNLINK; } else + if (file[j].fname != NULL) { + free(file[j].fname); + }; file[j].fname= NULL; return EAF_OK; }else{