Small fixes

This commit is contained in:
Michiel Broek 2002-05-12 12:47:18 +00:00
parent d04e45c286
commit 57a3751b32
3 changed files with 3 additions and 1 deletions

View File

@ -234,7 +234,7 @@ node *getnlent(faddr *addr)
/* /*
* First, lookup node in index. NOTE -- NOT 5D YET * First, lookup node in index. NOTE -- NOT 5D YET
*/ */
path = calloc(128, sizeof(char)); path = calloc(PATH_MAX, sizeof(char));
sprintf(path, "%s/%s", CFG.nodelists, "node.index"); sprintf(path, "%s/%s", CFG.nodelists, "node.index");
if ((fp = fopen(path, "r")) == NULL) { if ((fp = fopen(path, "r")) == NULL) {
WriteError("$Can't open %s", path); WriteError("$Can't open %s", path);

View File

@ -316,6 +316,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
SearchNode(Node); SearchNode(Node);
free(ticfile); free(ticfile);
free(fwdfile); free(fwdfile);
tidy_faddr(route);
} }

View File

@ -69,6 +69,7 @@ int VirScan(void)
fclose(fp); fclose(fp);
} }
free(temp);
return rc; return rc;
} }