pull/266/head
Michael Zillgith 5 years ago
commit 07525b598f

@ -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
} }

@ -2014,6 +2014,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