Hello,
We have found an issue with string handling in mama while looking at our payload implementation of mamaMsg_toString.
According to the documentation the string should be freed by the caller using mamaMsg_freeString() but this function is not implemented.
See p. 5.16.4.121 in the OpenMAMA C API Reference Manual.
5.16.4.121 MAMAExpDLL const char mamaMsg_toString (const mamaMsg msg)
Return a const char representation the message.
Must call mamaMsg_freeString() to free memory allocated for string.
Parameters:
msg The message.
Returns:
A string representation of the message.
Currently the function mamaMsg_freeString is empty.
See the code in msg.c:
void
mamaMsg_freeString (const mamaMsg msg, const char* msgString)
{
}
Can someone explain what is intended here? Is the payload supposed to implement its own freeString called through mamaMsg_freeString?
Has anyone else tried to address this problem, if so, how?
Regards,
Guy - Tick42