Hi I am new to TTCN3 learning TTCN3 for Iot .
Need help,
After doing codec Encoder for received message returning encoded Byte string back to TTCN3
BinaryString tciEncode(Value)
{
BinaryString return_b_string;
// memory allocation for data
return_b_string.data = NbMalloc (size);
**
**
**
return ( return_b_string);
}
wanted to know I have allocated memory for encoding and returned this information to TTCN3, how to free this memory because TTCN3 says whatever memory allocated by user they should free.
I am getting memory leak.
There is API i found triException we can use, don't know how to use this API
Please help me over this