Merge pull request #265 from mbourhis/v1.5-fix_GooseEthernetInterfaceId_allocation

IED Server/Goose: Fix the 'Goose Ethernet Interface Id' allocation
pull/266/head
Michael Zillgith 5 years ago committed by GitHub
commit fb9fc7b88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1692,6 +1692,6 @@ void
IedServer_setGooseInterfaceId(IedServer self, const char* interfaceId) IedServer_setGooseInterfaceId(IedServer self, const char* interfaceId)
{ {
#if (CONFIG_INCLUDE_GOOSE_SUPPORT == 1) #if (CONFIG_INCLUDE_GOOSE_SUPPORT == 1)
self->mmsMapping->gooseInterfaceId = interfaceId; self->mmsMapping->gooseInterfaceId = StringUtils_copyString(interfaceId);
#endif #endif
} }

@ -2015,6 +2015,7 @@ MmsMapping_destroy(MmsMapping* self)
#if (CONFIG_INCLUDE_GOOSE_SUPPORT == 1) #if (CONFIG_INCLUDE_GOOSE_SUPPORT == 1)
LinkedList_destroyDeep(self->gseControls, (LinkedListValueDeleteFunction) MmsGooseControlBlock_destroy); LinkedList_destroyDeep(self->gseControls, (LinkedListValueDeleteFunction) MmsGooseControlBlock_destroy);
if (self->gooseInterfaceId) GLOBAL_FREEMEM(self->gooseInterfaceId);
#endif #endif
#if (CONFIG_IEC61850_SAMPLED_VALUES_SUPPORT == 1) #if (CONFIG_IEC61850_SAMPLED_VALUES_SUPPORT == 1)

Loading…
Cancel
Save