rem: free(ret);
add: wfree(ret);
context: checkFile(char *path, char *folder, char *ext, char *resource){    char *ret;    int extralen;        extralen = (ext ? strlen(ext) : 0) + (folder ? strlen(folder) : 0) + 4;     ret = wmalloc(strlen(path)+strlen(resource)+extralen+8);    strcpy(ret, path);    if (folder) {	strcat(ret, "/");	strcat(ret, folder);    }    if (ext) {	strcat(ret, "/");	strcat(ret, ext);    }    strcat(ret, "/");    strcat(ret, resource);        if (access(ret, F_OK)!=0) {	free(ret);	ret = NULL;    }    return ret;}