rem: free(bPtr);
add: wfree(bPtr);
context: WMCreatePopUpButton(WMWidget *parent){    PopUpButton *bPtr;    W_Screen *scr = W_VIEW(parent)->screen;        bPtr = wmalloc(sizeof(PopUpButton));    memset(bPtr, 0, sizeof(PopUpButton));    bPtr->widgetClass = WC_PopUpButton;        bPtr->view = W_CreateView(W_VIEW(parent));    if (!bPtr->view) {	free(bPtr);	return NULL;    }    bPtr->view->self = bPtr;        WMCreateEventHandler(bPtr->view, ExposureMask|StructureNotifyMask			 |ClientMessageMask, handleEvents, bPtr);    W_ResizeView(bPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);    bPtr->caption = wstrdup(DEFAULT_CAPTION);    WMCreateEventHandler(bPtr->view, ButtonPressMask|ButtonReleaseMask,			 handleActionEvents, bPtr);    bPtr->flags.enabled = 1;        bPtr->menuView = W_CreateTopView(scr);    bPtr->menuView->attribs.override_redirect = True;    bPtr->menuView->attribFlags |= CWOverrideRedirect;    W_ResizeView(bPtr->menuView, bPtr->view->size.width, 1);    WMCreateEventHandler(bPtr->menuView, ButtonPressMask|ButtonReleaseMask			 |EnterWindowMask|LeaveWindowMask|ButtonMotionMask			 |ExposureMask, handleActionEvents, bPtr);    return bPtr;}