Memory Leak in COPCItem::getSupportedProperties()
Status: Beta
Brought to you by:
beharrell
There appears to be a memory leak in COPCItem::getSupportedProperties(). It appears to be caused by the strings allocated for the item descriptions. When I add the following line of code in the FOR loop the leak disappears.
COPCClient::comFree(pDescriptions[i]);
Thanks for this OPC code. I am finding it very useful.
Best regards,
Timmy McKinney
Modified code for COPCItem::getSupportedProperties()