35 lines
707 B
Diff
35 lines
707 B
Diff
--- src/cfenvgraph.c
|
|
+++ src/cfenvgraph.c
|
|
@@ -777,6 +777,7 @@
|
|
{
|
|
Verbose("Can't open directory %s\n",CFWORKDIR);
|
|
perror("opendir");
|
|
+ free(array);
|
|
return;
|
|
}
|
|
|
|
@@ -793,6 +794,7 @@
|
|
if ((ERRNO = db_create(&dbp,dbenv,0)) != 0)
|
|
{
|
|
Verbose("Couldn't open arrivals database %s\n",database);
|
|
+ free(array);
|
|
return;
|
|
}
|
|
|
|
@@ -875,6 +877,7 @@
|
|
{
|
|
Verbose("Unable to open %s for writing\n",filename);
|
|
perror("fopen");
|
|
+ free(array);
|
|
return;
|
|
}
|
|
|
|
@@ -898,6 +901,7 @@
|
|
}
|
|
|
|
closedir(dirh);
|
|
+free(array);
|
|
}
|
|
|
|
/***************************************************************/
|