if((stream = fopen(hcname, "r")) == NULL)
{
flog(LOG_WARNING, "could not open hash cache %s: %s", hcname, strerror(errno));
+ free(hcname);
return;
}
+ free(hcname);
while(hashcache != NULL)
freehashcache(hashcache);
line = 0;
if((stream = fopen(hcname, "w")) == NULL)
{
flog(LOG_WARNING, "could not write hash cache %s: %s", hcname, strerror(errno));
+ free(hcname);
return;
}
+ free(hcname);
fprintf(stream, "# Dolda Connect hash cache file\n");
fprintf(stream, "# Generated automatically, do not edit\n");
fprintf(stream, "# Format: DEVICE INODE MTIME [HASH...]\n");
} else if(fd >= 0) {
if((wbuf = adc2path(argv[1])) != NULL)
transfersetpath(peer->transfer, wbuf);
+ free(wbuf);
peer->transfer->flags.b.minislot = 1;
}
if(fd < 0)
for(pp = cargv; *pp; pp++)
free(*pp);
free(cargv);
+ free(filtercmd);
data->fcmdsk = wrapsock(pipe);
data->fcmdpid = pid;
if(data->fcmdbuf != NULL)