rem: free(file);
add: wfree(file);
context: validOpenFile(WMFilePanel *panel){    WMListItem *item;    int col, haveFile = 0;    char *file = WMGetTextFieldText(panel->fileField);    if (file[0] != '\0')        haveFile = 1;    free(file);    col = WMGetBrowserSelectedColumn(panel->browser);    item = WMGetBrowserSelectedItemInColumn(panel->browser, col);    if (item) {	if (item->isBranch && !panel->flags.canChooseDirectories && !haveFile)	    return False;	else if (!item->isBranch && !panel->flags.canChooseFiles)            return False;        else            return True;    } else {        /* we compute for / here */	if (!panel->flags.canChooseDirectories && !haveFile)	    return False;        else            return True;    }    return True;}