rem: free(scr->workspaces[i]->name);
add: wfree(scr->workspaces[i]->name);
context: wWorkspaceRestoreState(WScreen *scr){    proplist_t parr, pstr, wks_state;    proplist_t clip_state;    int i, j, wscount;    make_keys();    parr = PLGetDictionaryEntry(scr->session_state, dWorkspaces);    if (!parr)	return;        wscount = scr->workspace_count;    for (i=0; i < WMIN(PLGetNumberOfElements(parr), MAX_WORKSPACES); i++) {        wks_state = PLGetArrayElement(parr, i);        if (PLIsDictionary(wks_state))            pstr = PLGetDictionaryEntry(wks_state, dName);        else            pstr = wks_state;	if (i >= scr->workspace_count)	    wWorkspaceNew(scr);	if (scr->workspace_menu) {	    free(scr->workspace_menu->entries[i+2]->text);	    scr->workspace_menu->entries[i+2]->text = wstrdup(PLGetString(pstr));	    scr->workspace_menu->flags.realized = 0;	}	free(scr->workspaces[i]->name);        scr->workspaces[i]->name = wstrdup(PLGetString(pstr));        if (!wPreferences.flags.noclip) {            clip_state = PLGetDictionaryEntry(wks_state, dClip);            if (scr->workspaces[i]->clip)                wDockDestroy(scr->workspaces[i]->clip);            scr->workspaces[i]->clip = wDockRestoreState(scr, clip_state,                                                         WM_CLIP);            if (i>0)                wDockHideIcons(scr->workspaces[i]->clip);            /* We set the global icons here, because scr->workspaces[i]->clip             * was not valid in wDockRestoreState().             * There we only set icon->omnipresent to know which icons we             * need to set here.             */            for (j=0; j<scr->workspaces[i]->clip->max_icons; j++) {                WAppIcon *aicon = scr->workspaces[i]->clip->icon_array[j];                if (aicon && aicon->omnipresent) {                    aicon->omnipresent = 0;                    wClipMakeIconOmnipresent(aicon, True);                    XMapWindow(dpy, aicon->icon->core->window);                }            }        }#ifdef KWM_HINTS	wKWMUpdateWorkspaceNameHint(scr, i);#endif    }#ifdef GNOME_STUFF    wGNOMEUpdateWorkspaceNamesHint(scr);#endif}