From f71f1389ba4e24b8f65de4e57970972143bf152d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 17 Sep 2004 18:18:49 +0000
Subject: [PATCH] forgot fclose

---
 utils/misc/callgmsh.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils/misc/callgmsh.c b/utils/misc/callgmsh.c
index 85abfe8bdc..78ae3ac52d 100644
--- a/utils/misc/callgmsh.c
+++ b/utils/misc/callgmsh.c
@@ -16,6 +16,8 @@ int main(void)
 
     fp = fopen("/tmp/gmsh.pid", "r");
     fscanf(fp, "%d", &pid);
+    fclose(fp);
+
     sprintf(str, "kill %d", pid);
     system(str);
   }    
-- 
GitLab