OPC-Classic-SDK icon indicating copy to clipboard operation
OPC-Classic-SDK copied to clipboard

Error in SOCmnList.cpp

Open Eta76 opened this issue 3 years ago • 3 comments

Line 720 of SOCmnList.cpp should proabably say: SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoMap*));

Haven't looked into the MACRO, but they could be all deleting the same pointer. Making line 719 and 720 not do anything

Source: OPC-Classic-SDK-main\development\core\src\SOCmn\SOCmnList.cpp BOOL SOCmnListHeader::create( IN OPTIONAL SOCmnListConfig* creationConfig) { if (isInit()) { return FALSE; } if (isList()) { if ((m_type & SOCMNLIST_TYPE_INFO_FULL_LIST) != 0) { SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoFullList*)); } else { SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoSimpleList*)); } } else if (isMap()) { SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoMap*)); } else { // something went wrong and the old type can not determined SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoFullList*)); SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoSimpleList*)); SOCMN_FREE_OBJECT_C(m_info, (SOCmnListInfoSimpleList*)); <===== Line 720 }

Eta76 avatar Dec 31 '21 08:12 Eta76