rem: free(file);
add: wfree(file);
context: wTextureMakeTGradient(WScreen *scr, int style, RColor *from, RColor *to,		      char *pixmap_file, int opacity){    WTexTGradient *texture;    XGCValues gcv;    RImage *image;    char *file;    file = FindImage(wPreferences.pixmap_path, pixmap_file);    if (!file) {        wwarning(_("image file \"%s\" used as texture could not be found."),                 pixmap_file);	return NULL;    }    image = RLoadImage(scr->rcontext, file, 0);    if (!image) {	wwarning(_("could not load texture pixmap \"%s\":%s"), file,		 RMessageForError(RErrorCode));	free(file);	return NULL;    }    free(file);    texture = wmalloc(sizeof(WTexture));    memset(texture, 0, sizeof(WTexture));    texture->type = style;        texture->opacity = opacity;    texture->color1 = *from;    texture->color2 = *to;    texture->normal.red = (from->red + to->red)<<7;    texture->normal.green = (from->green + to->green)<<7;    texture->normal.blue = (from->blue + to->blue)<<7;    XAllocColor(dpy, scr->w_colormap, &texture->normal);    gcv.background = gcv.foreground = texture->normal.pixel;    gcv.graphics_exposures = False;    texture->normal_gc = XCreateGC(dpy, scr->w_win, GCForeground|GCBackground				   |GCGraphicsExposures, &gcv);    texture->pixmap = image;    return texture;}