rem: free(tmp);
add: wfree(tmp);
context: fetchFile(char *toPath, char *srcFile, char *destFile){    int	src, dest;    int	n;    char	*tmp;    char	buf[BUFSIZE];        if ((src = open(srcFile, O_RDONLY)) == 0) {	wsyserror("Could not open %s", srcFile);	return -1;    }        tmp = wstrappend(toPath, destFile);    if ((dest = open( tmp, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) 	== 0) {	wsyserror("Could not create %s", tmp);	free(tmp);	return -1;    }    free(tmp);            /* Copy the file */    while ((n = read(src, buf, BUFSIZE)) > 0)    {	if (write (dest, buf, n) != n)	{	    wsyserror("Write error on file %s", destFile);	    return -1;	}    }        return 0;}