Skip to content
Snippets Groups Projects
Commit f71f1389 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

forgot fclose
parent f9e7e7f9
Branches
Tags
No related merge requests found
...@@ -16,6 +16,8 @@ int main(void) ...@@ -16,6 +16,8 @@ int main(void)
fp = fopen("/tmp/gmsh.pid", "r"); fp = fopen("/tmp/gmsh.pid", "r");
fscanf(fp, "%d", &pid); fscanf(fp, "%d", &pid);
fclose(fp);
sprintf(str, "kill %d", pid); sprintf(str, "kill %d", pid);
system(str); system(str);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment