rem: free(tmp);
add: wfree(tmp);
context: LocateImage(char *name){    char *path;    char *tmp = wmalloc(strlen(name)+8);            if (TIFFOK) {	sprintf(tmp, "%s.tiff", name);	path = WMPathForResourceOfType(tmp, "tiff");    } else {	sprintf(tmp, "%s.xpm", name);	path = WMPathForResourceOfType(tmp, "xpm");    }    free(tmp);    if (!path) {	wwarning(_("could not locate image file %s\n"), name);    }        return path;}