[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb-20091103 for Gentoo, working on ebuild



On Sat, 2009-11-07 at 14:07 +0100, Stefan Salewski wrote:

Building for open-motif we get

hid/lesstif/main.c:3707: warning: attempt to free a non-heap object ‘pd’


related to this source text.


 pd = (PinoutData *) MyCalloc (1, sizeof (PinoutData), "lesstif_show_item");

  pd->item = item;

  extents = hid_get_extents (item);
  pd->left = extents->X1;
  pd->right = extents->X2;
  pd->top = extents->Y1;
  pd->bottom = extents->Y2;

  if (pd->left > pd->right)
    {
      free (&pd);
      return;
    }
  pd->prev = 0;


Can someone confirm that "free (&pd);" is fine here?




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user