rem: free(tmp);
add: wfree(tmp);
context: wApplicationExtractDirPackIcon(WScreen *scr, char *path, 				char *wm_instance, char *wm_class){    char *iconPath=NULL;    /* Maybe the app is a .app and it has an icon in it, like     * /usr/local/GNUstep/Apps/WPrefs.app/WPrefs.tiff     */    if (strstr(path, ".app")) {	char *tmp;		tmp = wmalloc(strlen(path)+16);		if (scr->flags.supports_tiff) {	    strcpy(tmp, path);	    strcat(tmp, ".tiff");	    if (access(tmp, R_OK)==0)		iconPath = tmp;	}	if (!path) {	    strcpy(tmp, path);	    strcat(tmp, ".xpm");	    if (access(tmp, R_OK)==0)		iconPath = tmp;	}	if (!iconPath)	    free(tmp);    }        if (iconPath) {	saveIconNameFor(iconPath, wm_instance, wm_class);	free(iconPath);    }}