aboutsummaryrefslogtreecommitdiffstats
path: root/common/frequencies.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/frequencies.c')
-rw-r--r--common/frequencies.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/frequencies.c b/common/frequencies.c
index 1c95832..cc03cf3 100644
--- a/common/frequencies.c
+++ b/common/frequencies.c
@@ -62,6 +62,7 @@ void freq_init(void)
fprintf(stderr,"%s:%d: syntax error\n",
DATADIR "/Index.map",nr);
}
+ fclose(fp);
chanlist_names = malloc((i+1) * sizeof(struct STRTAB));
for (j = 0; j < i; j++) {
@@ -125,6 +126,7 @@ static int freq_readlist(struct CHANLIST **list, int n, char *name)
/* Huh ? */
fprintf(stderr,"%s:%d: syntax error\n", filename, nr);
}
+ fclose(fp);
return n;
}

Privacy Policy