Any of the functions that take an input of a buffer can safely be freed immediately after return from the API. This includes the totempg_ function calls (A duplicate is allocated) and saSendRetry.
On Wed, 2007-12-05 at 11:15 +0100, Andrew Beekhof wrote: > Is it safe to free the memory passed to saSendRetry() after it returns? > > I have been operating under the assumption that it is, but > occasionally I see corrupted and/or truncated messages arrive on the > other side (eg. 5 nodes might get the whole message but the last one > gets a mangled version) and I'm struggling to figure out why. > probablly something not working in ipc properly. On a side note I have been busily reworking IPC and should have something shortly which may resolve the issues you see. Regards -steve > I can submit a bug if required, but I thought I'd ask the obvious > question first. > > andrwe _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
