add: } else wsyserror("Couldn't remove palette %s\n", tmp);  wfree(tmp);
context: customPaletteMenuRemove(W_ColorPanel *panel){    W_Screen	*scr = WMWidgetScreen(panel->win);    char	*text;    char	*tmp;    int		choice;    int		item;        item = WMGetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn);        tmp = wstrappend( "This will permanently remove the palette ", 		     WMGetPopUpButtonItem(panel->customPaletteHistoryBtn, item ));    text = wstrappend( tmp, 	    ".\n\nAre you sure you want to remove this palette ?");    wfree(tmp);        choice = WMRunAlertPanel(scr, panel->win, NULL, text, "Yes", "No", NULL);    /* returns 0 (= "Yes") or 1 (="No") */    wfree(text);        if (choice == 0) {		tmp = wstrappend(panel->configurationPath, 			 WMGetPopUpButtonItem(panel->customPaletteHistoryBtn, item ));		if ( remove(tmp) != 0)	    wsyserror("Couldn't remove palette %s\n", tmp);	wfree(tmp);		/* item -1 always exists */	WMSetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn, item-1);		customPaletteHistoryCallback(panel->customPaletteHistoryBtn, panel);	customSetPalette(panel);		WMRemovePopUpButtonItem(panel->customPaletteHistoryBtn, item);    }}