ORBit bug?



I am unsure if the following is really an ORBit bug, since it seems to
be
a very common task. If you take a look at

_ORBIT_skel_Bonobo_PropertyBag_setValues () in Bonobo-skels.c:

The demarshalling code does not allocate memory for the name. Instead it
uses a
pointer into the receive buffer:

  set._buffer[_ORBIT_tmpvar_3].name = (void *) _ORBIT_curptr;

and later the code calls:

  Bonobo_PropertySet__free(&set, NULL, CORBA_TRUE);

Notice that release_strings is TRUE. So the memory is freed twice?

- Dietmar





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